fix(core): improper check for selection key code in zoom-pan filter
This commit is contained in:
@@ -196,7 +196,7 @@ onMounted(() => {
|
|||||||
if (!panOnDrag && !zoomScroll && !panOnScroll && !zoomOnDoubleClick && !zoomOnPinch) return false
|
if (!panOnDrag && !zoomScroll && !panOnScroll && !zoomOnDoubleClick && !zoomOnPinch) return false
|
||||||
|
|
||||||
// during a selection we prevent all other interactions
|
// 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 zoom on double click is disabled, we prevent the double click event
|
||||||
if (!zoomOnDoubleClick && event.type === 'dblclick') return false
|
if (!zoomOnDoubleClick && event.type === 'dblclick') return false
|
||||||
|
|||||||
Reference in New Issue
Block a user