fix: broken activateViewportBeforeInteraction behavior (#4810)

This commit is contained in:
Sofien-Sellami 2025-02-26 18:14:56 +01:00 committed by GitHub
parent d319d20b0d
commit fdb073c216
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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) {
>
<div
data-cy="viewport-pane"
className={classNames('flex h-full w-full min-w-[5px] flex-col', {
'pointer-events-none':
!isActive && (appConfig?.activateViewportBeforeInteraction ?? true),
})}
className="flex h-full w-full min-w-[5px] flex-col"
>
<ViewportComponent
displaySets={displaySets}