Skip to content

Clicking the score at a point after a repeat causes quick flash of cursor at incorrect position #1047

@jonaro00

Description

@jonaro00

Is there an existing issue for this?

  • I have searched the existing issues

Current Behavior

image

When clicking on bar 3, the blue beat cursor recalculates its position. During this, it (and the yellow bar highlight) flashes and is briefly visible on bar 1 (circled in image above) for roughly one frame. (I can provide a slow mo GIF if needed)

Expected Behavior

The cursor should not render until the new position is fully calculated.

Steps To Reproduce

\ro :1 r | \rc 2 r | r | r

Click repeatedly on bar 3 and see the cursor flash on bar 1.

Link to jsFiddle, CodePen, Project

No response

Found in Version

1.3-alpha

Platform

Web

Environment

- **OS**: Windows 10
- **Browser**: Latest Brave (Chromium) and Firefox

Anything else?

Likely caused when the offset from start of score is calculated and the durations of repeats are added afterwards.

Metadata

Metadata

Assignees

Labels

area-playerRelated to the audio playback engine.platform-javascriptRelated to the JavaScript version of alphaTabstate-acceptedThis is a valid topic to work on.

Type

No type
No fields configured for issues without a type.

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions