Detect Windows 8 tablets as touchdevice also.
This commit is contained in:
1 parent
66967f8326
commit
5bf3b929a2
1 file changed
+1
-1
@@ -32,7 +32,7 @@
|
|||||||
self.c.addEvent('click:relay(a[href^=http])', self.openDerefered.bind(self));
|
self.c.addEvent('click:relay(a[href^=http])', self.openDerefered.bind(self));
|
||||||
|
|
||||||
// Check if device is touchenabled
|
// Check if device is touchenabled
|
||||||
self.touch_device = 'ontouchstart' in document.documentElement;
|
self.touch_device = 'ontouchstart' in window || navigator.msMaxTouchPoints;
|
||||||
if(self.touch_device)
|
if(self.touch_device)
|
||||||
self.c.addClass('touch_enabled');
|
self.c.addClass('touch_enabled');
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user