Merge pull request #595 from RavWar/chrome-pointer-fix

Bind Touch or Pointer events exclusively, fixes #594
This commit is contained in:
Hyunje Jun
2016-12-19 22:08:54 +09:00
committed by GitHub

View File

@@ -152,9 +152,7 @@ function bindTouchHandler(element, i, supportsTouch, supportsIePointer) {
i.event.bind(element, 'touchstart', touchStart);
i.event.bind(element, 'touchmove', touchMove);
i.event.bind(element, 'touchend', touchEnd);
}
if (supportsIePointer) {
} else if (supportsIePointer) {
if (window.PointerEvent) {
i.event.bind(window, 'pointerdown', globalTouchStart);
i.event.bind(window, 'pointerup', globalTouchEnd);