fix: broken activateViewportBeforeInteraction behavior (#4810)
This commit is contained in:
1 parent
d319d20b0d
commit
fdb073c216
1 file changed
+2
-5
@@ -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}
|
||||||
|
|||||||
Reference in new issue
Block a user