Skip to content

Commit 46a3f01

Browse files
committed
fix: increase zoom precision from 0.01 to 0.001
1 parent 66f2e7c commit 46a3f01

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

packages/plugin-zoom/src/lib/zoom-plugin.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,7 @@ export class ZoomPlugin extends BasePlugin<
198198
return;
199199
}
200200
const exactZoom = clamp(base + delta, this.minZoom, this.maxZoom);
201-
const newZoom = Math.floor(exactZoom * 100) / 100;
201+
const newZoom = Math.floor(exactZoom * 1000) / 1000;
202202

203203
/* ------------------------------------------------------------------ */
204204
/* step 2 – figure out the viewport point we should keep under focus */

0 commit comments

Comments
 (0)