We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 66f2e7c commit 46a3f01Copy full SHA for 46a3f01
1 file changed
packages/plugin-zoom/src/lib/zoom-plugin.ts
@@ -198,7 +198,7 @@ export class ZoomPlugin extends BasePlugin<
198
return;
199
}
200
const exactZoom = clamp(base + delta, this.minZoom, this.maxZoom);
201
- const newZoom = Math.floor(exactZoom * 100) / 100;
+ const newZoom = Math.floor(exactZoom * 1000) / 1000;
202
203
/* ------------------------------------------------------------------ */
204
/* step 2 – figure out the viewport point we should keep under focus */
0 commit comments