From 6266f35ace0f1911de2714185f1453fff3062413 Mon Sep 17 00:00:00 2001 From: Alexander Guryanov Date: Tue, 29 Sep 2020 15:23:18 +0700 Subject: [PATCH] [BUG](#151): Give touch events more priority then pointer events --- src/super.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/super.js b/src/super.js index dec15ef..5738a73 100644 --- a/src/super.js +++ b/src/super.js @@ -31,13 +31,13 @@ var events = { }; var toBind; var secondBind = {}; -if (isPointer) { +if (isTouch) { + toBind = events.touch; + secondBind = events.mouse; +} else if (isPointer) { toBind = events.pointer; } else if (isMSPointer) { toBind = events.MSPointer; -} else if (isTouch) { - toBind = events.touch; - secondBind = events.mouse; } else { toBind = events.mouse; }