Hack `mouseup` outside the window in IE 7/8

I understand the event mouseupfor the window simply does not exist for IE 7 and 8. I was wondering if anyone had found a job for this or if it was possible.

I am currently working on a project in which the user can click, drag to draw a line, and if the user drags outside the window and then click on the mouse, the drawing transaction will be canceled.

+5
source share
2 answers

Your difficulty sounds as if it will be more from a window losing its scope.

jQuery? jQuery mousemove "", , . , . , .

$(window).mouseleave , . , , ( , , ..).

, ... , "" .

+2

, , .

mousemove Event.buttons. , , .

, . !

0

All Articles