diff options
Diffstat (limited to 'src/com/vaadin/terminal/gwt/client/BrowserInfo.java')
-rw-r--r-- | src/com/vaadin/terminal/gwt/client/BrowserInfo.java | 15 |
1 files changed, 3 insertions, 12 deletions
diff --git a/src/com/vaadin/terminal/gwt/client/BrowserInfo.java b/src/com/vaadin/terminal/gwt/client/BrowserInfo.java index 4434e9471e..844b4f2e96 100644 --- a/src/com/vaadin/terminal/gwt/client/BrowserInfo.java +++ b/src/com/vaadin/terminal/gwt/client/BrowserInfo.java @@ -68,12 +68,12 @@ public class BrowserInfo { } if (browserDetails.isChrome()) { - touchDevice = detectChromeTouchDevice(); + touchDevice = detectChromeTouchDevice(); } else { - touchDevice = detectTouchDevice(); + touchDevice = detectTouchDevice(); } } - + private native boolean detectTouchDevice() /*-{ try { document.createEvent("TouchEvent");return true;} catch(e){return false;}; @@ -409,13 +409,4 @@ public class BrowserInfo { return touchDevice; } - /** - * @return true if browser needs TouchScrollDelegate javascript scrolling - * handler - */ - public boolean requiresTouchScrollDelegate() { - return !(isTouchDevice() && isWebkit() && getWebkitVersion() >= 534 && getBrowserString() - .contains("Android")); - } - } |