Skip to content

Commit af9d5d1

Browse files
committed
show cursor when paused
1 parent 39450c7 commit af9d5d1

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

‎src/void/vweb/eng/eng.ts‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,7 @@ export class Eng {
8686
initBody()
8787

8888
this.#canvas = canvas
89+
canvas.style.cursor = this.#paused() ? 'auto' : 'none'
8990
this.#fullscreen = new Fullscreen(canvas.parentElement!, canvas)
9091
this.#renderer = this.#newRenderer()
9192
}
@@ -361,6 +362,7 @@ export class Eng {
361362
this.#cancelFrame()
362363
clearTimeout(this.#updateTimeoutId)
363364
this.#updateTimeoutId = 0
365+
this.#canvas.style.cursor = this.#paused() ? 'auto' : 'none'
364366
if (this.#paused()) this.#lastTime = 0
365367
this.#reqUpdate()
366368
}

0 commit comments

Comments
 (0)