More QOL changes

This commit is contained in:
ZXY101
2024-02-11 08:45:21 +02:00
parent 04dd68b242
commit 491c4efab2
5 changed files with 49 additions and 12 deletions

View File

@@ -195,8 +195,8 @@
const { clientX, clientY } = event;
const { scale } = $panzoomStore.getTransform();
if (scale < 0.6) {
$panzoomStore.zoomTo(clientX, clientY, 1.4);
if (scale < 1) {
$panzoomStore.zoomTo(clientX, clientY, 1.5);
} else {
zoomFitToScreen();
}