Skip to content

Commit

Permalink
fix(MSPointerEvent): uses PointerEvent instead of MSPointerEvent if s…
Browse files Browse the repository at this point in the history
…upported. Fixes #754
  • Loading branch information
runspired committed Dec 21, 2015
1 parent 3ea47f3 commit 439c7a6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/input/pointerevent.js
Original file line number Diff line number Diff line change
Expand Up @@ -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';
}
Expand Down

0 comments on commit 439c7a6

Please sign in to comment.