From e167df9601316591321fe6b7b0d32875882f131e Mon Sep 17 00:00:00 2001 From: moklick Date: Mon, 13 Nov 2023 11:17:37 +0100 Subject: [PATCH] refactor(system): respect zoomActivationKeyPressed when hovering a node --- packages/system/src/xypanzoom/filter.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/system/src/xypanzoom/filter.ts b/packages/system/src/xypanzoom/filter.ts index c0d0addd..3e2cec14 100644 --- a/packages/system/src/xypanzoom/filter.ts +++ b/packages/system/src/xypanzoom/filter.ts @@ -61,7 +61,7 @@ export function createFilter({ // if the target element is inside an element with the nopan class, we prevent panning if ( isWrappedWithClass(event, noPanClassName) && - ((!panOnScroll && event.type !== 'wheel') || (panOnScroll && event.type === 'wheel')) + (event.type !== 'wheel' || (panOnScroll && event.type === 'wheel' && !zoomActivationKeyPressed)) ) { return false; }