Skip to content

Commit

Permalink
fix #926 Select with many entries / Unable to scroll on touch devices
Browse files Browse the repository at this point in the history
  • Loading branch information
vegegoku committed May 5, 2024
1 parent 25dbe58 commit cd52a72
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -104,8 +104,6 @@ public AbstractMenuItem() {
this.addEventListener(
EventType.touchstart.getName(),
evt -> {
evt.stopPropagation();
evt.preventDefault();
focus();
openSubMenu();
});
Expand Down Expand Up @@ -148,8 +146,6 @@ public <T extends AbstractMenuItem<V>> T setSelectable(boolean selectable) {
}

private void onSelected(Event evt) {
evt.stopPropagation();
evt.preventDefault();
if (parent.isMultiSelect() && isSelected()) {
deselect();
} else {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -402,6 +402,9 @@ public Menu() {
0);
}
};

this.addEventListener(EventType.touchstart.getName(), Event::stopPropagation);
this.addEventListener(EventType.touchend.getName(), Event::stopPropagation);
}

public void focusFirstMatch(String token) {
Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
<elemental2.version>1.2.1</elemental2.version>
<gwt.version>2.10.0</gwt.version>
<gwt.version>2.11.0</gwt.version>
<jackson.apt.version>1.0.4</jackson.apt.version>
<gwt.i18n.version>1.0.2</gwt.i18n.version>
<domino.doc.tool.version>1.0.0</domino.doc.tool.version>
Expand Down

0 comments on commit cd52a72

Please sign in to comment.