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