-
In my app, I have a template object outside the canvas. The template object is draggable, and the canvas is droppable. Users can then drag the template object into the canvas to add a copy object (of the template object) inside the canvas. The position of the copy object should be exactly where the template object is dropped. To implement this, I have an
This works perfectly fine if there's no scrolling. However, if the dragging causes scrolling to happen, the position of Is there a way to solve this issue? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Forgot to post an update, and it's embarrassing.... I actually simply need |
Beta Was this translation helpful? Give feedback.
Forgot to post an update, and it's embarrassing.... I actually simply need
event.active.rect.current.translated!.top - event.over!.rect.top
!