fix focus on mouse down
This commit is contained in:
parent
cefca9788c
commit
1a024499ee
|
@ -71,6 +71,7 @@ class PixelPlainterControls {
|
||||||
|
|
||||||
onMouseDown(event: MouseEvent) {
|
onMouseDown(event: MouseEvent) {
|
||||||
event.preventDefault();
|
event.preventDefault();
|
||||||
|
window.focus();
|
||||||
|
|
||||||
if (event.button === 0) {
|
if (event.button === 0) {
|
||||||
this.isMouseDown = true;
|
this.isMouseDown = true;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user