Adjust double tap zoom
This commit is contained in:
@@ -190,8 +190,8 @@
|
|||||||
const { clientX, clientY } = event;
|
const { clientX, clientY } = event;
|
||||||
const { scale } = $panzoomStore.getTransform();
|
const { scale } = $panzoomStore.getTransform();
|
||||||
|
|
||||||
if (scale < 0.5) {
|
if (scale < 0.6) {
|
||||||
$panzoomStore.zoomTo(clientX, clientY, 3);
|
$panzoomStore.zoomTo(clientX, clientY, 1.5);
|
||||||
} else {
|
} else {
|
||||||
zoomFitToScreen();
|
zoomFitToScreen();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user