From 3dfcb48215052ab3e94c80879754bffdf19678c3 Mon Sep 17 00:00:00 2001 From: Andrew Kingston Date: Fri, 1 Jul 2022 13:40:37 +0100 Subject: [PATCH] Fix mobile mode not working properly inside app preview --- .../src/components/context/DeviceBindingsProvider.svelte | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/client/src/components/context/DeviceBindingsProvider.svelte b/packages/client/src/components/context/DeviceBindingsProvider.svelte index 36d86645c4..ba2d9c2dc9 100644 --- a/packages/client/src/components/context/DeviceBindingsProvider.svelte +++ b/packages/client/src/components/context/DeviceBindingsProvider.svelte @@ -21,11 +21,11 @@ } onMount(() => { - resizeObserver.observe(document.getElementById("spectrum-root")) + resizeObserver.observe(document.getElementById("clip-root")) }) onDestroy(() => { - resizeObserver.unobserve(document.getElementById("spectrum-root")) + resizeObserver.unobserve(document.getElementById("clip-root")) })