Skip to content
Snippets Groups Projects
Commit 57b5c425 authored by Paul Kaplan's avatar Paul Kaplan
Browse files

Make mousedown on the stage blur inputs, with @picklesrus

parent 9c736fa8
Branches
Tags
No related merge requests found
......@@ -255,7 +255,12 @@ class Stage extends React.Component {
};
this.props.vm.postIOData('mouse', data);
if (e.preventDefault) {
// Prevent default to prevent touch from dragging page
e.preventDefault();
// But we do want any active input to be blurred
if (document.activeElement && document.activeElement.blur) {
document.activeElement.blur();
}
}
if (this.props.isColorPicking) {
const {r, g, b} = this.state.colorInfo.color;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment