Virtual whiteboard for sketching hand-drawn like diagrams
fix: don't jump text to end when out of viewport in safari (#6416)
Aakansha Doshid61b3cf83d0a
diff --git a/src/element/textWysiwyg.tsx b/src/element/textWysiwyg.tsxindex d9a7505f95..4e8ef3a5cc 100644--- a/src/element/textWysiwyg.tsx+++ b/src/element/textWysiwyg.tsx@@ -297,6 +297,7 @@ export const textWysiwyg = ({filter: "var(--theme-filter)",maxHeight: `${editorMaxHeight}px`,});+ editable.scrollTop = 0;// For some reason updating font attribute doesn't set font family// hence updating font family explicitly for test environmentif (isTestEnv()) {