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