
this project work well when pageformat is endless
but when I set pageformat option (or newPageFromXML option) like "a4 p" or others
cursor cannot follow the new page
it came back to starting point (but it wasn't an exact location)


Thanks
This is a known bug that will be fixed.
I thought there was already an issue for this, but apparently not, thanks for creating.
This is now fixed.
Here's the cursor on page 2 of our OSMD Function Test - System and Page Breaks:

The fix was not that easy to implement, because right now unfortunately each MusicPage is at relative and absolute position (0,0), so for the cursor position, which is in HTML-DOM space, we need to add the height of the previous pages' containers to the cursor y position.
Maybe we'll change that in the future, but for now, the cursor position works on all pages.
I improved the cursor positioning and DOM-attachment.
Instead of adding the height of previous pages to the cursor position, the cursor is now reattached to the div/canvas of the current page.
You can now also change the PageFormat or size of the window, and the cursor will be redrawn correctly at whatever new page and location the currently highlighted position is now.
Thank you so much!
This is a great work!!
Most helpful comment
I improved the cursor positioning and DOM-attachment.
Instead of adding the height of previous pages to the cursor position, the cursor is now reattached to the div/canvas of the current page.
You can now also change the PageFormat or size of the window, and the cursor will be redrawn correctly at whatever new page and location the currently highlighted position is now.