Merge pull request #4380 from xyflow/svelte-fix-shift-scroll

Svelte: Only prevent shift scrolling when selection is actually in progress
This commit is contained in:
Moritz Klack
2024-06-19 17:08:12 +02:00
committed by GitHub

View File

@@ -23,7 +23,7 @@
const {
viewport,
panZoom,
selectionKeyPressed,
selectionRect,
minZoom,
maxZoom,
dragging,
@@ -66,7 +66,7 @@
preventScrolling: typeof preventScrolling === 'boolean' ? preventScrolling : true,
noPanClassName: 'nopan',
noWheelClassName: 'nowheel',
userSelectionActive: $selectionKeyPressed,
userSelectionActive: !!$selectionRect,
translateExtent: $translateExtent,
lib: $lib
}}