From c03c497eeb4f1f368e36ee2dfa72d33ef4b22a23 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Johannes=20Dahlstr=C3=B6m?= Date: Mon, 14 May 2012 10:32:48 +0000 Subject: [PATCH] #8724 Erroneously called onTouchBrowserEvent with non-touch platforms svn changeset:23732/svn branch:6.8 --- src/com/vaadin/terminal/gwt/client/ui/VScrollTable.java | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/com/vaadin/terminal/gwt/client/ui/VScrollTable.java b/src/com/vaadin/terminal/gwt/client/ui/VScrollTable.java index 0ab200ccf4..bcd66c13f8 100644 --- a/src/com/vaadin/terminal/gwt/client/ui/VScrollTable.java +++ b/src/com/vaadin/terminal/gwt/client/ui/VScrollTable.java @@ -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; } -- 2.39.5