From: Alexander Ebert Date: Sun, 3 Nov 2013 13:03:25 +0000 (+0100) Subject: Proper detection of touch-capability on Windows 8/IE 10/11 X-Git-Tag: 2.0.0_Beta_11~7 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=555561be7bc0fbcb8be3e879282561e29ca0f130;p=GitHub%2FWoltLab%2FWCF.git Proper detection of touch-capability on Windows 8/IE 10/11 --- diff --git a/wcfsetup/install/files/js/WCF.js b/wcfsetup/install/files/js/WCF.js index 8f01cdcef8..89b98856f7 100755 --- a/wcfsetup/install/files/js/WCF.js +++ b/wcfsetup/install/files/js/WCF.js @@ -133,7 +133,7 @@ String.prototype.hashCode = function() { } jQuery.browser = browser; - jQuery.browser.touch = (!!('ontouchstart' in window) || !!('msMaxTouchPoints' in window.navigator)); + jQuery.browser.touch = (!!('ontouchstart' in window) || (!!('msMaxTouchPoints' in window.navigator) && window.navigator.msMaxTouchPoints > 0)); // detect smartphones jQuery.browser.smartphone = ($('html').css('caption-side') == 'bottom');