diff --git a/src/component/overlay.vue b/src/component/overlay.vue index e041293e..01872af9 100644 --- a/src/component/overlay.vue +++ b/src/component/overlay.vue @@ -284,8 +284,8 @@ this._ctx.clearRect(0, 0, width, height) this._ctx.drawImage( this.cursorElem, - (x / this.screenSize.width) * width - this.control.cursor.image.x, - (y / this.screenSize.height) * height - this.control.cursor.image.y, + Math.round((x / this.screenSize.width) * width - this.control.cursor.image.x), + Math.round((y / this.screenSize.height) * height - this.control.cursor.image.y), this.control.cursor.image.width, this.control.cursor.image.height, )