fix focus on mouse down

This commit is contained in:
HF 2020-11-06 19:25:15 +01:00
parent cefca9788c
commit 1a024499ee

View File

@ -71,6 +71,7 @@ class PixelPlainterControls {
onMouseDown(event: MouseEvent) {
event.preventDefault();
window.focus();
if (event.button === 0) {
this.isMouseDown = true;