Hello every one! Today I introduce my third extension, which is repositioning tools extension.
This extension give you the ability to drag your components any where on the screen, without needing to drop it in another arrangement,This will be useful for many users who are making animations and they need the user to drag something by himself , like swiping to delete or making parallax effect,etc..
Actually, i've got the extension idea from @nikzdreamer2001 ( Unfortunately, he is suspended ) here.
i've called this extension repositioning tools and not drag tools ,etc.. so i've the ability to update it with others repositoining tools like scaling,zooming,etc..
Thanks for @WatermelonIce for the documentation table.
Thanks for any one who liked this extension .If you've liked it please hit the like button
Any suggestions,bugs will be considered, just tell me below and i will try my best to implement it
Perhaps, This could help me create overlapping Content. I can see in the video that the button can overlap others, I also think that you should give permission to change X/Y Axis using blocks! Your extension could make literally thousands of possibilities!
Hello mohamed well in continuation to our conversation we would like your precious help...
I have made an example to fully understand the problem...
You will notice that when you add a character to the first text it pushes the next text.... repostools.aia (15.0 KB)
Regards
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
can I limit the scope of draggable components to only buttons in a single vertical arrangement? this would be to prevent unwanted movement of components elsewhere in the app.