This commit is contained in:
parent
960b640e89
commit
e34cf3aee3
@ -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();
|
||||
|
Loading…
x
Reference in New Issue
Block a user