From: Alexander Ebert Date: Thu, 14 Jul 2016 16:41:33 +0000 (+0200) Subject: Use click event globally for now X-Git-Tag: 3.0.0_Beta_1~1138 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=79321317842330ad7a0d75fa9bf9f76526519e8c;p=GitHub%2FWoltLab%2FWCF.git 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. --- 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);