Skip to content

Conversation

@Danielku15
Copy link
Member

Issues

Fixes #2515

Proposed changes

The first change in this PR is to animate cursors to the end of their respective "real position" which deprecates the "end of bar". This allows a more consistent behavior in the different scenarios.

Next is that we use the "animate to end of beat" mode when the "next beat" is outside the selected playback range ensuring the cursor will not go beyond the selected range.

Last this PR allows fully custom cursor handlers via ICursorHandler implementations. This should allow any customizations that users would want to do to the cursor (e.g. having additional adorners or adjusting the built-in element position). The API is tightly coupled to the internal alphaTab behavior but should allow everything needed.

Checklist

  • I consent that this change becomes part of alphaTab under it's current or any future open source license
  • Changes are implemented
  • New tests were added

Further details

  • This is a breaking change
  • This change will require update of the documentation/website

@Danielku15 Danielku15 self-assigned this Feb 1, 2026
@Danielku15 Danielku15 force-pushed the feature/beat-cursor-range branch from 0582933 to ad6c9d9 Compare February 1, 2026 18:19
@Danielku15 Danielku15 merged commit 18f1253 into develop Feb 1, 2026
5 checks passed
@Danielku15 Danielku15 deleted the feature/beat-cursor-range branch February 1, 2026 18:24
@AvaTheArchitect
Copy link

AvaTheArchitect commented Feb 1, 2026 via email

@Danielku15
Copy link
Member Author

I plan to ship this in a 1.8.1 these days. The earlier you report whether this works for you the more likely I can still address concerns. 😉

Danielku15 added a commit that referenced this pull request Feb 1, 2026
@AvaTheArchitect
Copy link

AvaTheArchitect commented Feb 1, 2026 via email

@AvaTheArchitect
Copy link

AvaTheArchitect commented Feb 3, 2026 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Let beat cursor end at playback range end.

3 participants