Skip to content

Commit 590f6db

Browse files
authored
fix: update selection highlight on re-render (#2646)
1 parent d36a590 commit 590f6db

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

packages/alphatab/src/AlphaTabApiBase.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3621,6 +3621,9 @@ export class AlphaTabApiBase<TSettings> {
36213621

36223622
this._currentBeat = null;
36233623
this._cursorUpdateTick(this._previousTick, false, 1, true, true);
3624+
if(this._selectionStart) {
3625+
this.highlightPlaybackRange(this._selectionStart.beat, this._selectionEnd!.beat);
3626+
}
36243627

36253628
(this.postRenderFinished as EventEmitter).trigger();
36263629
this.uiFacade.triggerEvent(this.container, 'postRenderFinished', null);

0 commit comments

Comments
 (0)