fix(core): improper check for selection key code in zoom-pan filter

This commit is contained in:
braks
2022-11-14 20:04:36 +01:00
committed by Braks
parent da0a294aa4
commit d677292131
@@ -196,7 +196,7 @@ onMounted(() => {
if (!panOnDrag && !zoomScroll && !panOnScroll && !zoomOnDoubleClick && !zoomOnPinch) return false
// during a selection we prevent all other interactions
if (selectionKeyPressed.value && !selectionKeyCode !== true) return false
if (selectionKeyPressed.value && selectionKeyCode !== true) return false
// if zoom on double click is disabled, we prevent the double click event
if (!zoomOnDoubleClick && event.type === 'dblclick') return false