Closed rasfront closed 1 year ago
Yes it is work. Here is my code screenshot
@Raserad
I know what you mean. However, when rotated, it becomes difficult to distinguish between vertical and horizontal.
The behavior of throttleDrag will change. Instead of the values of beforeTranslate and translate, it is changed based on the screen.
@Raserad
@moveable/helper
0.0.4lit-moveable
0.16.0moveable
0.39.0preact-moveable
0.41.0react-compat-moveable
0.27.0react-moveable
0.42.0svelte-moveable
0.31.0vue-moveable
2.0.0-beta.48vue3-moveable
0.14.0ngx-moveable
0.36.0I fixed it according to your suggestion. Check it again.
@daybrush i have an idea how to keep throttleDrag then element is snapped. Look. The snappable is workign in 2 axis - horizontal and vertical. When element snapping by x or y or both axises you turn off throttleDrag to make accurancy snapping (in most cases you need turn off throttleDrag to make correct elements position depends on snapping elements). So you can go by another way. You can turn off throttleDrag to x axis or y axis depends on which axis is snapping. Whe we have horizontalSnaping you can turn off y axis of throttleDrag, when we have verticalSnapping you can turn off x axis of throttleDrag.
Do you understand my idea?