From d25fd8b62575977d42b73c5fb71b339dbf1dd118 Mon Sep 17 00:00:00 2001 From: Andrew Kingston Date: Wed, 6 Jan 2021 10:11:56 +0000 Subject: [PATCH] Pass preview type to client app so it can decide whether components are selectable --- .../AppPreview/CurrentItemPreview.svelte | 18 ++++++++++-------- .../AppPreview/iframeTemplate.html | 17 ++++++----------- packages/client/src/store/builder.js | 14 +++++++++++++- 3 files changed, 29 insertions(+), 20 deletions(-) diff --git a/packages/builder/src/components/userInterface/AppPreview/CurrentItemPreview.svelte b/packages/builder/src/components/userInterface/AppPreview/CurrentItemPreview.svelte index 0c0fa6156f..c5bcb2951a 100644 --- a/packages/builder/src/components/userInterface/AppPreview/CurrentItemPreview.svelte +++ b/packages/builder/src/components/userInterface/AppPreview/CurrentItemPreview.svelte @@ -1,6 +1,6 @@ diff --git a/packages/builder/src/components/userInterface/AppPreview/iframeTemplate.html b/packages/builder/src/components/userInterface/AppPreview/iframeTemplate.html index 96b32e1967..2facc9ad70 100644 --- a/packages/builder/src/components/userInterface/AppPreview/iframeTemplate.html +++ b/packages/builder/src/components/userInterface/AppPreview/iframeTemplate.html @@ -10,6 +10,9 @@ *, *:before, *:after { box-sizing: border-box; } + * { + pointer-events: none; + }