From d26d3f939319b5bbd1e943c201c9e606c1f8d8ca Mon Sep 17 00:00:00 2001 From: Mark Salsbery Date: Wed, 14 Jan 2015 08:44:14 -0800 Subject: [PATCH] MouseTracker - Improved IE 9+ compatibility --- src/mousetracker.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/mousetracker.js b/src/mousetracker.js index 09b3c751..c90382f9 100644 --- a/src/mousetracker.js +++ b/src/mousetracker.js @@ -215,7 +215,6 @@ MSPointerOver: function ( event ) { onPointerOver( _this, event ); }, pointerout: function ( event ) { onPointerOut( _this, event ); }, MSPointerOut: function ( event ) { onPointerOut( _this, event ); }, - pointerdown: function ( event ) { onPointerDown( _this, event ); }, MSPointerDown: function ( event ) { onPointerDown( _this, event ); }, pointerup: function ( event ) { onPointerUp( _this, event ); }, @@ -1609,7 +1608,7 @@ function onMouseOver( tracker, event ) { event = $.getEvent( event ); - if ( this === event.relatedTarget || isParentChild( event.currentTarget, event.relatedTarget ) ) { + if ( event.currentTarget === event.relatedTarget || isParentChild( event.currentTarget, event.relatedTarget ) ) { return; } @@ -1654,7 +1653,7 @@ function onMouseOut( tracker, event ) { event = $.getEvent( event ); - if ( this === event.relatedTarget || isParentChild( event.currentTarget, event.relatedTarget ) ) { + if ( event.currentTarget === event.relatedTarget || isParentChild( event.currentTarget, event.relatedTarget ) ) { return; } @@ -2054,7 +2053,7 @@ function onPointerOver( tracker, event ) { var gPoint; - if ( this === event.relatedTarget || isParentChild( event.currentTarget, event.relatedTarget ) ) { + if ( event.currentTarget === event.relatedTarget || isParentChild( event.currentTarget, event.relatedTarget ) ) { return; } @@ -2077,7 +2076,7 @@ function onPointerOut( tracker, event ) { var gPoint; - if ( this === event.relatedTarget || isParentChild( event.currentTarget, event.relatedTarget ) ) { + if ( event.currentTarget === event.relatedTarget || isParentChild( event.currentTarget, event.relatedTarget ) ) { return; } @@ -2092,6 +2091,7 @@ updatePointersExit( tracker, event, [ gPoint ] ); } + /** * @private * @inner