While dragging, it is possible that the browser loses focus(for example ALT-TAB, or another window popping up and stealing focus) . When re-focussing, the drag-status is still 'dragging', which cannot be undone easily. It would be very nice if the drag is cancelled the moment the browser-window loses focus.
While dragging, it is possible that the browser loses focus(for example ALT-TAB, or another window popping up and stealing focus) . When re-focussing, the drag-status is still 'dragging', which cannot be undone easily. It would be very nice if the drag is cancelled the moment the browser-window loses focus.
There is code that detects the browser's focus. See here (from http://stackoverflow.com/a/1060034/461499):