react-draggable icon indicating copy to clipboard operation
react-draggable copied to clipboard

Fix Iframe sticky click with IE11/Edge

Open ibio opened this issue 8 years ago • 1 comments
trafficstars

When using IE, Edge(13, 14 and 15), if this react-draggable is in an iframe, the draggable item gets 'stuck' on the mouse if the user attempts to drag it off iframe/screen.

To reproduce: 1 Make sure react-draggable is in an iframe 2 Open IE browser 3 Try to click/drag the draggable item out of the iframe 4 Release mouse click(outside of the iframe). Observe as the user now moves mouse around the screen, the draggable item follows as if it's stuck to the pointer.

ibio avatar Sep 18 '17 23:09 ibio

@STRML I've added try catch to deal with cross-origin situation. Please have a look the latest change and let me know what you think. Thanks :)

ibio avatar Sep 18 '17 23:09 ibio