Merge pull request #1253 from sitzmar/right_click_timeout
adjust timeout to ensure right-click event has fired
This commit is contained in:
@@ -100,6 +100,7 @@ export function moveTextAreaUnderMouseCursor(ev: MouseEvent, textarea: HTMLTextA
|
|||||||
textarea.focus();
|
textarea.focus();
|
||||||
|
|
||||||
// Reset the terminal textarea's styling
|
// Reset the terminal textarea's styling
|
||||||
|
// Timeout needs to be long enough for click event to be handled.
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
textarea.style.position = null;
|
textarea.style.position = null;
|
||||||
textarea.style.width = null;
|
textarea.style.width = null;
|
||||||
@@ -107,7 +108,7 @@ export function moveTextAreaUnderMouseCursor(ev: MouseEvent, textarea: HTMLTextA
|
|||||||
textarea.style.left = null;
|
textarea.style.left = null;
|
||||||
textarea.style.top = null;
|
textarea.style.top = null;
|
||||||
textarea.style.zIndex = null;
|
textarea.style.zIndex = null;
|
||||||
}, 4);
|
}, 200);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user