Skip to content

Commit 439c7a6

Browse files
committed
fix(MSPointerEvent): uses PointerEvent instead of MSPointerEvent if supported. Fixes #754
1 parent 3ea47f3 commit 439c7a6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/input/pointerevent.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ var POINTER_ELEMENT_EVENTS = 'pointerdown';
1818
var POINTER_WINDOW_EVENTS = 'pointermove pointerup pointercancel';
1919

2020
// IE10 has prefixed support, and case-sensitive
21-
if (window.MSPointerEvent) {
21+
if (window.MSPointerEvent && !window.PointerEvent) {
2222
POINTER_ELEMENT_EVENTS = 'MSPointerDown';
2323
POINTER_WINDOW_EVENTS = 'MSPointerMove MSPointerUp MSPointerCancel';
2424
}

0 commit comments

Comments
 (0)