diff --git a/src/element/textWysiwyg.tsx b/src/element/textWysiwyg.tsx index 29427a9c..5743a69d 100644 --- a/src/element/textWysiwyg.tsx +++ b/src/element/textWysiwyg.tsx @@ -130,6 +130,7 @@ export const textWysiwyg = ({ }; const stopEvent = (event: Event) => { + event.preventDefault(); event.stopPropagation(); }; @@ -198,7 +199,10 @@ export const textWysiwyg = ({ // device keyboard is opened. window.addEventListener("resize", updateWysiwygStyle); window.addEventListener("pointerdown", onPointerDown); - window.addEventListener("wheel", stopEvent, true); + window.addEventListener("wheel", stopEvent, { + passive: false, + capture: true, + }); document.body.appendChild(editable); editable.focus(); editable.select();