settings: min/max zoom

This commit is contained in:
Tomáš Mládek 2022-12-07 23:34:17 +01:00
parent 08ef016837
commit 1a19e9849f

View file

@ -99,8 +99,8 @@
// PanZoom // PanZoom
const pz = createPanZoom(root, { const pz = createPanZoom(root, {
smoothScroll: false, smoothScroll: false,
minZoom: 0.05, minZoom: 0.1,
maxZoom: 3637937, maxZoom: 2,
zoomSpeed: 0.05, zoomSpeed: 0.05,
zoomDoubleClickSpeed: 1, zoomDoubleClickSpeed: 1,
beforeMouseDown: () => { beforeMouseDown: () => {