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:
@@ -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
|
||||
}}
|
||||
|
||||
Reference in New Issue
Block a user