Skip to content

Drag events in popout windows listen on the original window #1980

@RajRai

Description

@RajRai

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions