All examples By author By category About

stepheneb

IE Bug: Drag outside iframe and mouseup on IE10

IE Bug: Drag outside iframe and mouseup on IE10

The green circle is draggable.

The drag operation should be canceled when the drag extends outside of the iframe boundary and the drag is released.

This works in Chrome, Firefox, and Safari.

In IE10 (and probably IE9) a mouse-up (drag-end) event occurring outside the iframe is not processed correctly and the drag is now stuck on.

source: gist.github.com/stepheneb/5912718

bl.ocks: https://bl.ocks.org/stepheneb/5912718

20130702