mirror of
https://github.com/GraphiteEditor/Graphite.git
synced 2025-08-03 21:08:18 +00:00
Fix tool options bar number inputs not being applied before starting a drag with the tool (#1646)
Unfocus elements before control is passed to tool
This commit is contained in:
parent
9479abe114
commit
15ffdf73ca
1 changed files with 3 additions and 0 deletions
|
@ -165,6 +165,9 @@
|
|||
const onEditbox = e.target instanceof HTMLDivElement && e.target.contentEditable;
|
||||
|
||||
if (!onEditbox) viewport?.setPointerCapture(e.pointerId);
|
||||
if (window.document.activeElement instanceof HTMLElement) {
|
||||
window.document.activeElement.blur();
|
||||
}
|
||||
}
|
||||
|
||||
// Update rendered SVGs
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue