From: Johannes Dahlström Date: Mon, 14 May 2012 10:32:48 +0000 (+0000) Subject: #8724 Erroneously called onTouchBrowserEvent with non-touch platforms X-Git-Tag: 7.0.0.alpha3~155^2 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=c03c497eeb4f1f368e36ee2dfa72d33ef4b22a23;p=vaadin-framework.git #8724 Erroneously called onTouchBrowserEvent with non-touch platforms svn changeset:23732/svn branch:6.8 --- 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; }