From 9342d009af1f9b34f08f1badab77d45bf2702905 Mon Sep 17 00:00:00 2001 From: bordun Date: Wed, 11 Sep 2019 19:55:05 +0200 Subject: [PATCH] modal: prevent touchend from reaching inner widgets --- CHANGELOG.md | 1 + src/client/app/widgets/containers/modal.js | 1 + 2 files changed, 2 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index d736e222..79df8135 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,7 @@ - bug fixes - package: broken build from sources on Windows - editor: incorrect position when moving a widget from an edge with the keyboard + - modal: prevent touchend event from reaching the inner widgets when opening the container - widgets - frames: allow loading local html files without requiring a web server to serve them diff --git a/src/client/app/widgets/containers/modal.js b/src/client/app/widgets/containers/modal.js index d5033959..72c0e8fd 100644 --- a/src/client/app/widgets/containers/modal.js +++ b/src/client/app/widgets/containers/modal.js @@ -87,6 +87,7 @@ module.exports = class Modal extends Panel { } else { this.light.addEventListener('fast-click',(e)=>{ if (e.capturedByEditor === true) return + e.detail.preventOriginalEvent = true this.setValue(1, {sync:true, send:true}) }) }