|
@@ -121,8 +121,11 @@ export class Cursor implements IPlaybackListener {
|
|
|
let endMeasureIndex: number = this.rules.MaxMeasureToDrawIndex;
|
|
|
endMeasureIndex = Math.min(endMeasureIndex, lastSheetMeasureIndex);
|
|
|
|
|
|
- if (!this.openSheetMusicDisplay.Sheet.SelectionStart && this.openSheetMusicDisplay.Sheet &&
|
|
|
- this.openSheetMusicDisplay.Sheet.SourceMeasures.length > startMeasureIndex) {
|
|
|
+ const updateSelectionStart: boolean = this.openSheetMusicDisplay.Sheet && (
|
|
|
+ !this.openSheetMusicDisplay.Sheet.SelectionStart ||
|
|
|
+ this.openSheetMusicDisplay.Sheet.SelectionStart.WholeValue < startMeasureIndex) &&
|
|
|
+ this.openSheetMusicDisplay.Sheet.SourceMeasures.length > startMeasureIndex;
|
|
|
+ if (updateSelectionStart) {
|
|
|
this.openSheetMusicDisplay.Sheet.SelectionStart = this.openSheetMusicDisplay.Sheet.SourceMeasures[startMeasureIndex].AbsoluteTimestamp;
|
|
|
}
|
|
|
if (this.openSheetMusicDisplay.Sheet && this.openSheetMusicDisplay.Sheet.SourceMeasures.length > endMeasureIndex) {
|