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
While this works, it creates a 'ghosting effect', in which the component is dragged without the scale values applied, before magically being set in place with the proper offset when one lets go of the mouse.
I found another alternative, although it's something one should never do, which is to modify a small snippet of the react-draggable.js.
Of course, this would introduce breaking changes to the app whenever the module is updated (LOL). But this removes (from my experience) the need for tracking the deltas as STRML said and it also removes the 'ghosting effect' since it directly alters the DraggableData itself.
I was wondering if someone can add support by making a ZoomScale available as component prop. 😄
The text was updated successfully, but these errors were encountered:
I was having exactly the same problem as this issue here:
#139
I was able to solve it by doing what STRML said by dividing (or multiplying) the deltaX and deltaY with the scale value and adding it as an offset.
While this works, it creates a 'ghosting effect', in which the component is dragged without the scale values applied, before magically being set in place with the proper offset when one lets go of the mouse.
I found another alternative, although it's something one should never do, which is to modify a small snippet of the react-draggable.js.
Of course, this would introduce breaking changes to the app whenever the module is updated (LOL). But this removes (from my experience) the need for tracking the deltas as STRML said and it also removes the 'ghosting effect' since it directly alters the DraggableData itself.
I was wondering if someone can add support by making a ZoomScale available as component prop. 😄
The text was updated successfully, but these errors were encountered: