andywer / drag-mock

Trigger HTML5 drag & drop events for testing
MIT License
35 stars 11 forks source link

Testing drag that doesn't start in the page #13

Open Torgen opened 2 years ago

Torgen commented 2 years ago

If I want to test what happens if I drag something from outside the current browser window, my drag flow isn't going to start with dragStart. If that's a supported case, can the docs be updated to make it clear how to do it? Is my only option to make an element with a dragStart handler that fills in the dataTransfer the way the OS/other app would?