Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
fix(drag-drop): not stopping drag if page is blurred #17848
Currently the only way to stop a drag sequence is via a
Currently the only way to stop a drag sequence is via a `mouseup`/`touchend` event or by destroying the instance, however if the page loses focus while dragging the events won't be dispatched anymore and user will have to click again to stop dragging. These changes add some extra code that listens for `blur` events on the `window` and stops dragging. Fixes #17537.
@jelbourn as I understand it, the page visibility API only emits when the user switches to a different tab or they minimize the window. I think the