Fixed pointer event model detection for IE 10 (#571)

This commit is contained in:
Mark Salsbery 2015-01-20 10:26:14 -08:00
parent 2bd105042a
commit 3b01014ac8
2 changed files with 2 additions and 1 deletions

View File

@ -20,6 +20,7 @@ OPENSEADRAGON CHANGELOG
* Requesting keyboard focus when viewer is clicked (#537)
* Arrow key navigation fixed across platforms (#565)
* Removed textarea element from viewer DOM. Viewer.canvas now handles keyboard navigation (#569)
* Fixed pointer event model detection for IE 10 (#571)
1.2.0:

View File

@ -988,7 +988,7 @@
$.MouseTracker.maxTouchPoints = 0;
}
$.MouseTracker.haveMouseEnter = false;
} else if ( window.MSPointerEvent ) {
} else if ( window.MSPointerEvent && window.navigator.msPointerEnabled ) {
// IE10
$.MouseTracker.havePointerEvents = true;
$.MouseTracker.subscribeEvents.push( "MSPointerOver", "MSPointerOut", "MSPointerDown", "MSPointerUp", "MSPointerMove", "MSPointerCancel" );