From 89174ed99fc5d6d8032a84f3746bf22de7d36b17 Mon Sep 17 00:00:00 2001 From: RavWar Date: Mon, 19 Dec 2016 16:05:08 +0300 Subject: [PATCH] Bind Touch or Pointer events exclusively, fixes #594 --- src/js/plugin/handler/touch.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/js/plugin/handler/touch.js b/src/js/plugin/handler/touch.js index ef3a95d..ba5d133 100644 --- a/src/js/plugin/handler/touch.js +++ b/src/js/plugin/handler/touch.js @@ -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);