Skip to content

Commit

Permalink
remove touchend listeners
Browse files Browse the repository at this point in the history
  • Loading branch information
stonko1994 committed Jan 27, 2025
1 parent 52ac83d commit d596dbf
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/ts/components/buttons/Button.ts
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ export class Button<Config extends ButtonConfig> extends Component<Config> {
}).html(i18n.performLocalization(this.config.text)));

// Listen for the click event on the button element and trigger the corresponding event on the button component
buttonElement.on('click touchend', (e) => {
buttonElement.on('click', (e) => {
e.preventDefault();
e.stopPropagation();
this.onClickEvent();
Expand Down
2 changes: 1 addition & 1 deletion src/ts/components/settings/DynamicSettingsPanelItem.ts
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ export class DynamicSettingsPanelItem extends SettingsPanelItem<DynamicSettingsP
const handleItemClick = () => {
this.displayItemsSubPage();
};
this.getDomElement().on('click touchend', (e) => {
this.getDomElement().on('click', (e) => {
e.preventDefault();
e.stopPropagation();
handleItemClick();
Expand Down
2 changes: 1 addition & 1 deletion src/ts/components/settings/SettingsPanelSelectOption.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ export class SettingsPanelSelectOption extends SettingsPanelItem<SettingsPanelSe
const handleItemClick = () => {
this.settingComponent.selectItem(this.settingsValue);
};
this.getDomElement().on('click touchend', (e) => {
this.getDomElement().on('click', (e) => {
e.preventDefault();
e.stopPropagation();
handleItemClick();
Expand Down

0 comments on commit d596dbf

Please sign in to comment.