canvas redraw on cursorTag change.

This commit is contained in:
Miroslav Šedivý 2021-02-18 21:12:31 +01:00
parent 8bee5222b1
commit 7d4ad810b3

View File

@ -278,6 +278,11 @@
private cursorElement: HTMLImageElement = new Image()
private cursorPosition: { x: number; y: number } | null = null
@Watch('cursorTag')
onCursorTagChange() {
this.canvasRedraw()
}
@Watch('screenSize')
onScreenSizeChange() {
if (this.isControling) {