[FREE/OS] Repositioning Tools extension

Hi, can you please add this method to set to bring components forward or backward after dropping

Hello,
I would suggest you to use the Component Tools extensionSetZ method to deal with components being put over each other, for example, if you set the z position for compnent A to 10, and for component B to 20, component A would go backward component B.

1 Like

Hi,
I tried dragging a component in a vertical scroll arrangement and it drags but it doesn’t smoothly drag like it does in a vertical arrangement, could you please fix it @Mohamed_Tamer ?

Hi,
Yes, i expect the drags not to be smooth when the component is in s scrollable layout, because of the fact, the scroll would intercept touch events caused from drags, i will work on a bugfix for this.

2 Likes

Thank you @Mohamed_Tamer for your response,

can you please pm me, i tried to PM you but it says currently, you are not accepting PMs

Version 3.0

Changes:

  • Changed the dragging mechanism
    Now touch events which were being translated into drags, will not be dragged directly, but will require the developer to accept the drag first, this could help in allowing the developers to allow dragging only in case some conditions were met. This behavior can be disabled by enabling the AlwaysAcceptDrags (Thanks @broekmancompany )
  • Registered components are managed by IDs. A new id parameter is added for all blocks
  • The DragComponent block now has a duration parameter
  • Completely rewritten the extension’s code.
  • Migrated To Rush CLI for building the extension ( Thanks @Shreyash )
  • Fixes non-smooth dragging when the component’s parent is a scrollable component ( i.e: HorizontalScrollArrangement or VerticalScrollArrangement ) ( Thanks @Soham_Shah )

The extension is now open source:

The extension link has been updated in the first post.
Regards,
Mohamed Tamer

4 Likes

I still get the version 2 extension when i download from the first post

Apparently, I didn’t correctly upload the extension, I have re-updated the topic.

2 Likes

Hi buddy,
What about your layout Tools extension?? @Mohamed_Tamer
Did you made any other extension which can set arrangement to full clickable like card view??

Can u improve extension move x y absolute by interpolate easy?

I am using your extension in Ai2 and having trouble with dragging to a location. Please PM me, this is documented on the Ai2 forum, Ill be happy to post whatever you need, or send privately

extension doesn’t work. white screen when loading extension. if you remove the extension, the application loads fine.
Is there a similar extension?

I also have same problem

I use this extension in 2 different apps, there’s nothing wrong with it. What version do you use? Do you use any other extensions in same project?

great aix thank you friend :brown_heart: :black_heart: :white_heart:

vergen 2 worked with me on the aia but V3 didnt make the Screen open , if any one has V2 send it please

Please add an option to make the component draggable only in a particular layout…
Like i want my user to reposition a button but i want it to be in a box which is there not at anywhere on the screen.

Hello , extension working fine in seprate project , but in my main project i cant export apk [RunD8] INFO: Using pre-dexed dex-cached-a32f0aa30e6de9f24fa08a25cc12cb68.dex ← /tmp/firebase-encoders-json525769569248773280.jar
[RunD8] ERROR: d8 failed.
[RunD8] Task errored in 6.585 seconds , when i remove I export apk. I think it is conflicting with another extension. if you have any guide please let me know

Probably yes
Which other extensions are you using?
Make sure to always use their latest versions

Taifun

there are several extensions, i cant try them one by one so looking for another option. thank you for quick reply.