Permalink
Browse files

fix(MSPointerEvent): uses PointerEvent instead of MSPointerEvent if s…

…upported. Fixes #754
  • Loading branch information...
runspired committed Nov 12, 2015
1 parent 3ea47f3 commit 439c7a6c46978ab387b4b8289399e904d1c49535
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/input/pointerevent.js
@@ -18,7 +18,7 @@ var POINTER_ELEMENT_EVENTS = 'pointerdown';
var POINTER_WINDOW_EVENTS = 'pointermove pointerup pointercancel';
// IE10 has prefixed support, and case-sensitive
-if (window.MSPointerEvent) {
+if (window.MSPointerEvent && !window.PointerEvent) {
POINTER_ELEMENT_EVENTS = 'MSPointerDown';
POINTER_WINDOW_EVENTS = 'MSPointerMove MSPointerUp MSPointerCancel';
}

0 comments on commit 439c7a6

Please sign in to comment.