Sync textarea with cursor. Fixes #2598

This commit is contained in:
jeanp413
2020-07-09 03:56:40 -05:00
parent dc541c2664
commit 95d01dec52
6 changed files with 35 additions and 26 deletions
-11
View File
@@ -78,17 +78,6 @@ export function moveTextAreaUnderMouseCursor(ev: MouseEvent, textarea: HTMLTextA
textarea.style.zIndex = '1000';
textarea.focus();
// Reset the terminal textarea's styling
// Timeout needs to be long enough for click event to be handled.
setTimeout(() => {
textarea.style.position = '';
textarea.style.width = '';
textarea.style.height = '';
textarea.style.left = '';
textarea.style.top = '';
textarea.style.zIndex = '';
}, 200);
}
/**