Bind Touch or Pointer events exclusively, fixes #594
This commit is contained in:
parent
6e7e3f94fa
commit
89174ed99f
@ -152,9 +152,7 @@ function bindTouchHandler(element, i, supportsTouch, supportsIePointer) {
|
|||||||
i.event.bind(element, 'touchstart', touchStart);
|
i.event.bind(element, 'touchstart', touchStart);
|
||||||
i.event.bind(element, 'touchmove', touchMove);
|
i.event.bind(element, 'touchmove', touchMove);
|
||||||
i.event.bind(element, 'touchend', touchEnd);
|
i.event.bind(element, 'touchend', touchEnd);
|
||||||
}
|
} else if (supportsIePointer) {
|
||||||
|
|
||||||
if (supportsIePointer) {
|
|
||||||
if (window.PointerEvent) {
|
if (window.PointerEvent) {
|
||||||
i.event.bind(window, 'pointerdown', globalTouchStart);
|
i.event.bind(window, 'pointerdown', globalTouchStart);
|
||||||
i.event.bind(window, 'pointerup', globalTouchEnd);
|
i.event.bind(window, 'pointerup', globalTouchEnd);
|
||||||
|
Loading…
Reference in New Issue
Block a user