Skip to content

A fully open source & end-to-end encrypted note taking alternative to Evernote.

web: round off zoom value Signed-off-by: 01zulfi <[email protected]>

01zulfi6d53b78f6a1b
diff --git a/apps/web/src/components/editor/tiptap.tsx b/apps/web/src/components/editor/tiptap.tsx
index d00fb0563..36cb12abb 100644
--- a/apps/web/src/components/editor/tiptap.tsx
+++ b/apps/web/src/components/editor/tiptap.tsx
@@ -460,7 +460,7 @@ function TiptapWrapper(
: EDITOR_ZOOM.STEP;
const zoom = Math.min(
EDITOR_ZOOM.MAX,
- Math.max(EDITOR_ZOOM.MIN, editorConfig.zoom + delta)
+ Math.max(EDITOR_ZOOM.MIN, Math.round(editorConfig.zoom + delta))
);
setEditorConfig({ zoom });
}