abcjs
abcjs copied to clipboard
Scroll follow cursor
Hi @paulrosen hope you're doing well again,
A small question, is it already implemented to have the window scroll following the cursor ?
For exemple : https://daily-drum.com/challenge/6880/maggot It would be nice if the scroll will follow the notation instead of the user scrolling manually
Thanks in advance for your response, also, if I'm not wrong, I didn't received any feedback for my other issues/question
Best regards, Romain
That's not part of abcjs, but you can do that through the CursorControl object. See https://paulrosen.github.io/abcjs/audio/synthesized-sound.html#cursorcontrol-object
Notice that you get an event for lineEndAnticipation. You can use that to decide if you want to scroll.