Skip to content

Commit

Permalink
fix: fix zoom in action
Browse files Browse the repository at this point in the history
  • Loading branch information
F-star committed Feb 9, 2024
1 parent a5f2751 commit 259b686
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/core/src/zoom_manager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ export class ZoomManager {
const zoomStep = this.editor.setting.get('zoomStep');
const prevZoom = this.zoom;
const zoom = Math.max(
remainDecimal(prevZoom * (1 - zoomStep)),
remainDecimal(prevZoom / (1 + zoomStep)),
this.editor.setting.get('zoomMin'),
);

Expand Down

0 comments on commit 259b686

Please sign in to comment.