fix(zoom): prevent zoom when zoomOnScroll is disabled

This commit is contained in:
Braks
2022-03-12 18:28:35 +01:00
parent e4e5e67687
commit afaa038584
2 changed files with 5 additions and 4 deletions
+1 -1
View File
@@ -143,7 +143,7 @@ onMounted(async () => {
// if zoom on double click is disabled, we prevent the double click event
if (!store.zoomOnDoubleClick && event.type === 'dblclick') return false
if (noWheel(event) && event.type === 'wheel') return false
if ((!store.zoomOnScroll || noWheel(event)) && event.type === 'wheel') return false
// when the target element is a node, we still allow zooming
if (