Use click event globally for now
authorAlexander Ebert <ebert@woltlab.com>
Thu, 14 Jul 2016 16:41:33 +0000 (18:41 +0200)
committerAlexander Ebert <ebert@woltlab.com>
Thu, 14 Jul 2016 16:41:54 +0000 (18:41 +0200)
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

index b809335779708d36e2a8c051eadac43e36b5a9bc..7b3670e7a4934db2a8663f5027d19714e07e4479 100644 (file)
         */
        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);