Skip to content

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

web: do not zoom if e.deltaY is 0

Abdullah Atta48343e5d5cfc
diff --git a/apps/web/src/components/editor/tiptap.tsx b/apps/web/src/components/editor/tiptap.tsx
index fc51c9db8..d00fb0563 100644
--- a/apps/web/src/components/editor/tiptap.tsx
+++ b/apps/web/src/components/editor/tiptap.tsx
@@ -449,6 +449,8 @@ function TiptapWrapper(
const handleWheel = (e: WheelEvent) => {
if (e.ctrlKey) {
+ if (e.deltaY === 0) return;
+
e.preventDefault();
const delta =
(e.deltaY > 0 && e.deltaY < 10) || (e.deltaY > -10 && e.deltaY < 0)