From fdb073c216013477c8545db34d254a9ad328fe48 Mon Sep 17 00:00:00 2001 From: Sofien-Sellami <73444179+Sofien-Sellami@users.noreply.github.com> Date: Wed, 26 Feb 2025 18:14:56 +0100 Subject: [PATCH] fix: broken activateViewportBeforeInteraction behavior (#4810) --- platform/app/src/components/ViewportGrid.tsx | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/platform/app/src/components/ViewportGrid.tsx b/platform/app/src/components/ViewportGrid.tsx index 05e1723cd..9d95eb691 100644 --- a/platform/app/src/components/ViewportGrid.tsx +++ b/platform/app/src/components/ViewportGrid.tsx @@ -276,7 +276,7 @@ function ViewerViewportGrid(props: withAppTypes) { return; } - if (event) { + if (event && (appConfig?.activateViewportBeforeInteraction ?? true)) { event.preventDefault(); event.stopPropagation(); } @@ -310,10 +310,7 @@ function ViewerViewportGrid(props: withAppTypes) { >