From 2add6ff17bdd64e7f6eb5009ab01ac0e29bb9f24 Mon Sep 17 00:00:00 2001 From: Danielku15 Date: Thu, 9 Apr 2026 11:46:16 +0200 Subject: [PATCH] fix: update selection highlight on re-render --- packages/alphatab/src/AlphaTabApiBase.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/packages/alphatab/src/AlphaTabApiBase.ts b/packages/alphatab/src/AlphaTabApiBase.ts index 749e011e0..b80c8f7dd 100644 --- a/packages/alphatab/src/AlphaTabApiBase.ts +++ b/packages/alphatab/src/AlphaTabApiBase.ts @@ -3621,6 +3621,9 @@ export class AlphaTabApiBase { this._currentBeat = null; this._cursorUpdateTick(this._previousTick, false, 1, true, true); + if(this._selectionStart) { + this.highlightPlaybackRange(this._selectionStart.beat, this._selectionEnd!.beat); + } (this.postRenderFinished as EventEmitter).trigger(); this.uiFacade.triggerEvent(this.container, 'postRenderFinished', null);