A fully open source & end-to-end encrypted note taking alternative to Evernote.
TypeScript asp-net-coredotnet-coreelectronfosshacktoberfestnote-managmentnote-takingnote-taking-appnotebooknotesnotes-appopen-sourceopensourceprivacyproductivityreactreact-nativereactjsself-hosted
web: fix inconsistent zoom amount when adjusting with scroll wheel. (#6990)
Levi Ob0d3a8c88c8cb
diff --git a/apps/web/src/components/editor/tiptap.tsx b/apps/web/src/components/editor/tiptap.tsxindex 6d9f27b90..fc51c9db8 100644--- a/apps/web/src/components/editor/tiptap.tsx+++ b/apps/web/src/components/editor/tiptap.tsx@@ -453,7 +453,9 @@ function TiptapWrapper(const delta =(e.deltaY > 0 && e.deltaY < 10) || (e.deltaY > -10 && e.deltaY < 0)? -e.deltaY- : Math.ceil(-e.deltaY / 10 / EDITOR_ZOOM.STEP) * EDITOR_ZOOM.STEP;+ : e.deltaY > 0+ ? -EDITOR_ZOOM.STEP+ : EDITOR_ZOOM.STEP;const zoom = Math.min(EDITOR_ZOOM.MAX,Math.max(EDITOR_ZOOM.MIN, editorConfig.zoom + delta)