You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is it possible to use the top/left css properties instead of transform?
...or alternatively, keep using transform for dragging but then set reset its value on onDragStopped (and move the new position values to top/left) for performance?
Having the same problem. I would like to store the new hotspot position persistently when drag stopped. This will cause the hotspot to be rendered at a new left/top position (the end point of the drop). However, since the library keeps the transform, the translation is being added to this position.
It would be super nice if there was an option to reset the transform to translate(0,0) on dragStop.
Got the same problem with RTK Query, having the position of the draggable div stored in a database that gets updated once the dragging finishes, which invalidates the cache and repositions the div with its new left/top.
After changed object arrives in the component, the transform stays, which doubles the movement made.
Activity
abrehamgezahegn commentedon Dec 1, 2022
Looking for the same behavior. Zoom amount of the window affects the position set by transform.
twinkle77 commentedon Jun 1, 2023
+1
derwaldgeist commentedon Dec 10, 2023
Having the same problem. I would like to store the new hotspot position persistently when drag stopped. This will cause the hotspot to be rendered at a new left/top position (the end point of the drop). However, since the library keeps the transform, the translation is being added to this position.
It would be super nice if there was an option to reset the transform to translate(0,0) on dragStop.
Crashkurs commentedon Jan 27, 2024
Got the same problem with RTK Query, having the position of the draggable div stored in a database that gets updated once the dragging finishes, which invalidates the cache and repositions the div with its new left/top.
After changed object arrives in the component, the transform stays, which doubles the movement made.
Talha345 commentedon Apr 6, 2024
+1
acherkashin commentedon Jul 24, 2024
I'm interested in it as well, because monaco editor suggestion layer is not positioned correctly when parent element is positioned with
transformmicrosoft/monaco-editor#4580