Skip to content

Commit

Permalink
Widget action taphold: Hide context menu in desktop browser (openhab#…
Browse files Browse the repository at this point in the history
…2886)

Fixes openhab#2808.

Signed-off-by: Florian Hotze <[email protected]>
  • Loading branch information
florian-h05 authored Nov 30, 2024
1 parent c1da41f commit ecb2cae
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -331,9 +331,10 @@ export const actionsMixin = {
this.performAction(event, 'taphold')
},
onContextMenu (event) {
if (this.performAction(event, 'taphold')) {
event.preventDefault()
if (this.config.taphold_action) {
event.stopPropagation()
event.preventDefault()
this.performAction(event, 'taphold')
}
// System contextual menu will be displayed
}
Expand Down

0 comments on commit ecb2cae

Please sign in to comment.