xyflow / xyflow

React Flow | Svelte Flow - Powerful open source libraries for building node-based UIs with React (https://reactflow.dev) or Svelte (https://svelteflow.dev). Ready out-of-the-box and infinitely customizable.
https://xyflow.com
MIT License
21.84k stars 1.45k forks source link

Revert to window level event listeners #4281

Open peterkogo opened 2 weeks ago

peterkogo commented 2 weeks ago

We need to find a better solution than to apply our mouse listeners to the pane instead of the window. This makes interacting with the flow very hard when there are other ui elements around.

A better way would be to provide a better escape hatch for people to block our global event handlers in certain situations.