-
-
Notifications
You must be signed in to change notification settings - Fork 1k
Description
When using a Konva canvas inside of a popout window (such as the ones created by Dockview - Popout Demo), drag events are attached to the original window, leading to weird behavior. For instance, dragging on the popout window doesn't work, but if you mouse over the original window behind it, the Stage in the popout window will be dragged (for a draggable Stage).
I can try to provide a minimal example at some point, but I can't share the application I'm facing the issue in. I'm also working with dockview-react and react-konva which complicates things. However, I'm pretty sure the issue stems from these lines in DragAndDrop.ts.
Going to look into forking and fixing this independently by passing down a reference to the window as an optional parameter. But one of the Konva devs might be more familiar with the issue.
Thanks, let me know if more details are needed.