]> source.dussan.org Git - vaadin-framework.git/commitdiff
#8724 Erroneously called onTouchBrowserEvent with non-touch platforms
authorJohannes Dahlström <johannes.dahlstrom@vaadin.com>
Mon, 14 May 2012 10:32:48 +0000 (10:32 +0000)
committerJohannes Dahlström <johannes.dahlstrom@vaadin.com>
Mon, 14 May 2012 10:32:48 +0000 (10:32 +0000)
svn changeset:23732/svn branch:6.8

src/com/vaadin/terminal/gwt/client/ui/VScrollTable.java

index 0ab200ccf4a53350016c145d9a9f3cc302ecb1a5..bcd66c13f891a376ac896f91e89562735b85249d 100644 (file)
@@ -210,8 +210,9 @@ public class VScrollTable extends FlowPanel implements Table, ScrollHandler,
 
     private boolean enableDebug = false;
 
-    private final static boolean requiresTouchScrollDelegate = BrowserInfo
-            .get().requiresTouchScrollDelegate();
+    private static final boolean hasNativeTouchScrolling = BrowserInfo.get()
+            .isTouchDevice()
+            && !BrowserInfo.get().requiresTouchScrollDelegate();
 
     /**
      * Represents a select range of rows
@@ -5224,7 +5225,7 @@ public class VScrollTable extends FlowPanel implements Table, ScrollHandler,
             @Override
             public void onBrowserEvent(final Event event) {
 
-                if (!requiresTouchScrollDelegate) {
+                if (hasNativeTouchScrolling) {
                     onTouchBrowserEvent(event);
                     return;
                 }