File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11911191 } else {
11921192 document . addEventListener ( 'mousemove' , doEvent , false ) ;
11931193 document . addEventListener ( 'mouseup' , doEvent , false ) ;
1194+ document . addEventListener ( 'mouseleave' , doEvent , false ) ;
11941195 }
11951196 }
11961197 } else if ( theEvtObj . type . match ( / m o v e $ / i) ) {
12131214 lastXYById [ pointerId ] . x = pageX ;
12141215 lastXYById [ pointerId ] . y = pageY ;
12151216 }
1216- } else if ( lastXYById [ pointerId ] && theEvtObj . type . match ( / ( u p | e n d | c a n c e l ) $ / i) ) {
1217+ } else if ( lastXYById [ pointerId ] && theEvtObj . type . match ( / ( u p | e n d | c a n c e l | l e a v e ) $ / i) ) {
12171218 // clause handles up/end/cancel
12181219
12191220 if ( endEvent && prevent ) {
12401241 } else {
12411242 document . removeEventListener ( 'mousemove' , doEvent , false ) ;
12421243 document . removeEventListener ( 'mouseup' , doEvent , false ) ;
1244+ document . removeEventListener ( 'mouseleave' , doEvent , false ) ;
12431245 }
12441246 }
12451247 }
You can’t perform that action at this time.
0 commit comments