summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJohannes Dahlström <johannes.dahlstrom@vaadin.com>2012-05-22 11:24:41 +0000
committerJohannes Dahlström <johannes.dahlstrom@vaadin.com>2012-05-22 11:24:41 +0000
commitbec62403a7b56f093f5ee9829fea20ba3dee4628 (patch)
tree390fb7ba6c7858ec3f4f5cfca6aa8e2526cae8ad /src
parent12e35f034db98f5351c58c03b5277d4657e2ab28 (diff)
downloadvaadin-framework-bec62403a7b56f093f5ee9829fea20ba3dee4628.tar.gz
vaadin-framework-bec62403a7b56f093f5ee9829fea20ba3dee4628.zip
#8724 Properly generate simulated click events from touch events on iOS 5
svn changeset:23784/svn branch:6.8
Diffstat (limited to 'src')
-rw-r--r--src/com/vaadin/terminal/gwt/client/ui/VScrollTable.java5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/com/vaadin/terminal/gwt/client/ui/VScrollTable.java b/src/com/vaadin/terminal/gwt/client/ui/VScrollTable.java
index 9aeeffe1f0..38c0ccce11 100644
--- a/src/com/vaadin/terminal/gwt/client/ui/VScrollTable.java
+++ b/src/com/vaadin/terminal/gwt/client/ui/VScrollTable.java
@@ -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;