diff --git a/CHANGELOG.md b/CHANGELOG.md index c540a9a13..45f27950b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -20,6 +20,7 @@ All notable changes to `homebridge-config-ui-x` will be documented in this file. - allow docker users to disable the UI terminal via env - set `HOMEBRIDGE_CONFIG_UI_TERMINAL_ENABLED=0` - note that this has not been extensively tested +- fix opening control accessory modal on mobile devices ### Other Changes diff --git a/ui/src/app/core/directives/longclick.directive.ts b/ui/src/app/core/directives/longclick.directive.ts index 7732305ad..69c58b335 100644 --- a/ui/src/app/core/directives/longclick.directive.ts +++ b/ui/src/app/core/directives/longclick.directive.ts @@ -48,6 +48,12 @@ export class LongClickDirective implements OnDestroy { return } this.done = false + + if (event instanceof TouchEvent) { + event.preventDefault() + event.stopPropagation() + } + this.downTimeout = setTimeout(() => { if (!this.done) { this.done = true