mudcube / Event.js

:hand: Multi-touch, gestures, and other events—click, dblclick, dbltap, tap, longpress, drag, swipe, pinch, rotate, shake. For pointer events, each listener can handle anywhere from 1 to 12 fingers at a time, or more, depending on the device. Includes MetaKey tracking (CMD, CTRL) to support native key-commands in various platforms.
MIT License
368 stars 68 forks source link

eventsjs flags for different events(mouse/touch/pointer) return wrong data on IE11 #16

Open dhara-02 opened 9 years ago

dhara-02 commented 9 years ago

These are the flags used by eventjs to detect mouse, touch, pointer events respectively eventjs.isMouse eventjs.isTouch eventjs.isMSPointer

These flags are set wrong when we work on IE11 : It always sets eventjs.isMouse = true, even if event type is pointerEvent and when we have touched the target element , it should be eventjs.isMSPointer = true

kangax commented 9 years ago

/cc @bterlson @dstorey @jonathansampson

dstorey commented 9 years ago

Probably should remove the MS part of isPointer as other browsers are supporting (unprefixed) Pointer Events. IE11 and Edge are unprefixed too.