diff --git a/src/control/overlay.ts b/src/control/overlay.ts index 5b69c4a2..23ed4474 100644 --- a/src/control/overlay.ts +++ b/src/control/overlay.ts @@ -26,15 +26,14 @@ export class Overlay { const target = this.elements[key] ?? undefined; const ops = this.listeners[key]; if (ops && ops.onResize) { - requestAnimationFrame( - () => - ops.onResize?.({ - target, - source: this.source, - caller, - width, - height, - }), + requestAnimationFrame(() => + ops.onResize?.({ + target, + source: this.source, + caller, + width, + height, + }), ); } }); @@ -51,15 +50,14 @@ export class Overlay { const ops = this.listeners[key]; if (ops && ops.onMouseMove) { - requestAnimationFrame( - () => - ops.onMouseMove?.({ - x: mx, - y: my, - target, - source: this.source, - caller, - }), + requestAnimationFrame(() => + ops.onMouseMove?.({ + x: mx, + y: my, + target, + source: this.source, + caller, + }), ); } }); @@ -73,13 +71,12 @@ export class Overlay { const target = this.elements[key] || undefined; const ops = this.listeners[key]; if (ops && ops.onMouseExit) { - requestAnimationFrame( - () => - ops.onMouseExit?.({ - target, - source: this.source, - caller, - }), + requestAnimationFrame(() => + ops.onMouseExit?.({ + target, + source: this.source, + caller, + }), ); } });