refactor(system): respect zoomActivationKeyPressed when hovering a node

This commit is contained in:
moklick
2023-11-13 11:17:37 +01:00
parent 90912a6c1a
commit e167df9601
+1 -1
View File
@@ -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;
}