Skip to content

Virtual whiteboard for sketching hand-drawn like diagrams

Fixed wysiwyg carret disappearing on Chrome (#652)

Christopher Chedeau9a76556beab9
diff --git a/src/element/textWysiwyg.tsx b/src/element/textWysiwyg.tsx
index d705627280..bbe405c4d9 100644
--- a/src/element/textWysiwyg.tsx
+++ b/src/element/textWysiwyg.tsx
@@ -39,7 +39,7 @@ export function textWysiwyg({
Object.assign(editable.style, {
color: strokeColor,
- position: "fixed",
+ position: "absolute",
opacity: opacity / 100,
top: y + "px",
left: x + "px",
diff --git a/src/styles.scss b/src/styles.scss
index c7f57ecce7..6c09743586 100644
--- a/src/styles.scss
+++ b/src/styles.scss
@@ -3,6 +3,10 @@
body {
margin: 0;
font-family: Arial, Helvetica, sans-serif;
+ overflow: hidden;
+ position: fixed;
+ width: 100%;
+ height: 100%;
color: var(--text-color-primary);
}