only prevent shift scrolling when selection is actually in progress

This commit is contained in:
peterkogo
2024-06-19 13:23:20 +02:00
parent 42f4f59425
commit 26456b3f0f
@@ -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
}} }}