From 79321317842330ad7a0d75fa9bf9f76526519e8c Mon Sep 17 00:00:00 2001 From: Alexander Ebert Date: Thu, 14 Jul 2016 18:41:33 +0200 Subject: [PATCH] Use click event globally for now We need to evaluate if we can use a 3rd party library to consistently use pointer events. Using 'touchstart' has its issues, but gets rid of the lame tap delay. --- wcfsetup/install/files/js/wcf.globalHelper.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wcfsetup/install/files/js/wcf.globalHelper.js b/wcfsetup/install/files/js/wcf.globalHelper.js index b809335779..7b3670e7a4 100644 --- a/wcfsetup/install/files/js/wcf.globalHelper.js +++ b/wcfsetup/install/files/js/wcf.globalHelper.js @@ -194,6 +194,6 @@ */ var clickEvent = ('touchstart' in document.documentElement || 'ontouchstart' in window || navigator.MaxTouchPoints > 0 || navigator.msMaxTouchPoints > 0) ? 'touchstart' : 'click'; Object.defineProperty(window, 'WCF_CLICK_EVENT', { - value: clickEvent + value: 'click' //clickEvent }); })(window, document); -- 2.20.1