From 46a3f0149993007cbc3cd0efd23ad22917dfc81d Mon Sep 17 00:00:00 2001 From: eposha <54452472+eposha@users.noreply.github.com> Date: Fri, 24 Oct 2025 02:02:33 +0300 Subject: [PATCH] fix: increase zoom precision from 0.01 to 0.001 --- packages/plugin-zoom/src/lib/zoom-plugin.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/plugin-zoom/src/lib/zoom-plugin.ts b/packages/plugin-zoom/src/lib/zoom-plugin.ts index c936d4f0..e028a87a 100644 --- a/packages/plugin-zoom/src/lib/zoom-plugin.ts +++ b/packages/plugin-zoom/src/lib/zoom-plugin.ts @@ -198,7 +198,7 @@ export class ZoomPlugin extends BasePlugin< return; } const exactZoom = clamp(base + delta, this.minZoom, this.maxZoom); - const newZoom = Math.floor(exactZoom * 100) / 100; + const newZoom = Math.floor(exactZoom * 1000) / 1000; /* ------------------------------------------------------------------ */ /* step 2 – figure out the viewport point we should keep under focus */