update cursors on canvas size change.

This commit is contained in:
Miroslav Šedivý 2021-11-12 00:05:59 +01:00
parent a6dea31605
commit d3fa448eb4

View File

@ -72,6 +72,7 @@
onCanvasSizeChange({ width, height }: Dimension) {
this._overlay.width = width * CANVAS_SCALE
this._overlay.height = height * CANVAS_SCALE
this.canvasUpdateCursors()
}
// start as undefined to prevent jumping