]> source.dussan.org Git - vaadin-framework.git/commitdiff
#8724 Properly generate simulated click events from touch events on iOS 5
authorJohannes Dahlström <johannes.dahlstrom@vaadin.com>
Tue, 22 May 2012 11:24:41 +0000 (11:24 +0000)
committerJohannes Dahlström <johannes.dahlstrom@vaadin.com>
Tue, 22 May 2012 11:24:41 +0000 (11:24 +0000)
svn changeset:23784/svn branch:6.8

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

index 9aeeffe1f0a3927744e426bd6b072162bb7fd3a0..38c0ccce111c6a1640c6dc10c8023b62032a5bf6 100644 (file)
@@ -5088,6 +5088,7 @@ public class VScrollTable extends FlowPanel implements Table, ScrollHandler,
                                             // is held in place long enough.
                                             showContextMenu(touchStart);
                                             event.preventDefault();
+                                            touchStart = null;
                                         }
                                     }
                                 };
@@ -5134,6 +5135,10 @@ public class VScrollTable extends FlowPanel implements Table, ScrollHandler,
                         if (touchStart != null) {
                             event.preventDefault();
                             event.stopPropagation();
+                            if (!BrowserInfo.get().isAndroid()) {
+                                Util.simulateClickFromTouchEvent(touchStart,
+                                        this);
+                            }
                             touchStart = null;
                         }
                         isDragging = false;