Open qtsd opened 5 years ago
I realize this technique can have a flaw.
If you use a drag layer, it must have pointer-events: none
, so the drop targets behind can be triggered normally.
Therefore it can be tricky to change the mouse cursor since with pointer-events: none
, the cursor css rule is ignored.
Current behavior :
Fixed behavior :
Here is a codesandbox to see the different behavior between html5 and mouse backends (to change the backend, see index.js).