mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-04-14 16:40:58 -04:00
This commit is contained in:
parent
960b640e89
commit
e34cf3aee3
1 changed files with 5 additions and 1 deletions
|
@ -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…
Add table
Reference in a new issue