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