Fixed touch-detection for Mobile IE10 (Windows Phone 8)
authorAlexander Ebert <ebert@woltlab.com>
Sat, 2 Nov 2013 20:54:55 +0000 (21:54 +0100)
committerAlexander Ebert <ebert@woltlab.com>
Sat, 2 Nov 2013 20:54:55 +0000 (21:54 +0100)
wcfsetup/install/files/js/WCF.js

index 95f8f58f28e979aa9243ba547a455639361b43b7..3d904299f2797a81f5a29885b8a8559f6865a0ed 100755 (executable)
@@ -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));
        
        // detect smartphones
        jQuery.browser.smartphone = ($('html').css('caption-side') == 'bottom');