From 7d4ad810b355fe85ba3fd9226436aa00a77e7db3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miroslav=20=C5=A0ediv=C3=BD?= Date: Thu, 18 Feb 2021 21:12:31 +0100 Subject: [PATCH] canvas redraw on cursorTag change. --- src/component/overlay.vue | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/component/overlay.vue b/src/component/overlay.vue index 0ad6e6bd..04675565 100644 --- a/src/component/overlay.vue +++ b/src/component/overlay.vue @@ -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) {