fix cursor

This commit is contained in:
HF 2020-11-06 17:17:28 +01:00
parent 09790a9c25
commit 324a53b724

View File

@ -79,7 +79,9 @@ class PixelPlainterControls {
this.clickTabStartView = this.store.getState().canvas.view; this.clickTabStartView = this.store.getState().canvas.view;
const { viewport } = this; const { viewport } = this;
setTimeout(() => { setTimeout(() => {
viewport.style.cursor = 'move'; if (this.isMouseDown) {
viewport.style.cursor = 'move';
}
}, 300); }, 300);
} }
} }
@ -308,7 +310,8 @@ class PixelPlainterControls {
} }
onMouseOut() { onMouseOut() {
const { store } = this; const { store, viewport } = this;
viewport.style.cursor = 'auto';
store.dispatch(unsetHover()); store.dispatch(unsetHover());
} }