fix: broken activateViewportBeforeInteraction behavior (#4810)

This commit is contained in:
Sofien-Sellami authored and GitHub committed 2025-02-26 12:14:56 -05:00
1 parent d319d20b0d
commit fdb073c216
1 file changed
+2 -5
+2 -5
View File
@@ -276,7 +276,7 @@ function ViewerViewportGrid(props: withAppTypes) {
return; return;
} }
if (event) { if (event && (appConfig?.activateViewportBeforeInteraction ?? true)) {
event.preventDefault(); event.preventDefault();
event.stopPropagation(); event.stopPropagation();
} }
@@ -310,10 +310,7 @@ function ViewerViewportGrid(props: withAppTypes) {
> >
<div <div
data-cy="viewport-pane" data-cy="viewport-pane"
className={classNames('flex h-full w-full min-w-[5px] flex-col', { className="flex h-full w-full min-w-[5px] flex-col"
'pointer-events-none':
!isActive && (appConfig?.activateViewportBeforeInteraction ?? true),
})}
> >
<ViewportComponent <ViewportComponent
displaySets={displaySets} displaySets={displaySets}