|
@@ -246,7 +246,7 @@ export class Cursor implements IPlaybackListener {
|
|
const measurePositionAndShape: BoundingBox = this.graphic.findGraphicalMeasure(iterator.CurrentMeasureIndex, 0).PositionAndShape;
|
|
const measurePositionAndShape: BoundingBox = this.graphic.findGraphicalMeasure(iterator.CurrentMeasureIndex, 0).PositionAndShape;
|
|
this.updateWidthAndStyle(measurePositionAndShape, x, y, height);
|
|
this.updateWidthAndStyle(measurePositionAndShape, x, y, height);
|
|
|
|
|
|
- if (this.openSheetMusicDisplay.FollowCursor) {
|
|
|
|
|
|
+ if (this.openSheetMusicDisplay.FollowCursor && this.cursorOptions.follow) {
|
|
if (!this.openSheetMusicDisplay.EngravingRules.RenderSingleHorizontalStaffline) {
|
|
if (!this.openSheetMusicDisplay.EngravingRules.RenderSingleHorizontalStaffline) {
|
|
const diff: number = this.cursorElement.getBoundingClientRect().top;
|
|
const diff: number = this.cursorElement.getBoundingClientRect().top;
|
|
this.cursorElement.scrollIntoView({behavior: diff < 1000 ? "smooth" : "auto", block: "center"});
|
|
this.cursorElement.scrollIntoView({behavior: diff < 1000 ? "smooth" : "auto", block: "center"});
|