summaryrefslogtreecommitdiffstats
path: root/client
diff options
context:
space:
mode:
Diffstat (limited to 'client')
-rw-r--r--client/src/com/vaadin/client/BrowserInfo.java7
1 files changed, 7 insertions, 0 deletions
diff --git a/client/src/com/vaadin/client/BrowserInfo.java b/client/src/com/vaadin/client/BrowserInfo.java
index f0a4ccde0a..bddeddf74c 100644
--- a/client/src/com/vaadin/client/BrowserInfo.java
+++ b/client/src/com/vaadin/client/BrowserInfo.java
@@ -85,6 +85,8 @@ public class BrowserInfo {
if (browserDetails.isChrome()) {
touchDevice = detectChromeTouchDevice();
+ } else if (browserDetails.isIE()) {
+ touchDevice = detectIETouchDevice();
} else {
touchDevice = detectTouchDevice();
}
@@ -100,6 +102,11 @@ public class BrowserInfo {
return ("ontouchstart" in window);
}-*/;
+ private native boolean detectIETouchDevice()
+ /*-{
+ return !!navigator.msMaxTouchPoints;
+ }-*/;
+
private native int getIEDocumentMode()
/*-{
var mode = $wnd.document.documentMode;