Skip to content
Discussion options

You must be logged in to vote

this doesn't sound like a alphaTab problem, but a general browser problem. Within the alphaTab viewport you can get positions via BoundsLookup, but to get the coordinate of the container element is logic outside of alphaTab. It surprises me that getBoundingClientRect doesn't work well in Safari, sounds like a bug on their side.

But even if its not alphaTab specific: You should be able to solve this with reorganizing your DOM hierarchy. put alphaTab and your cursor into the same div. mark the wrapper as position: relative and the cursor to position: absolute.

position: absolute positions elements relative to the next higher position: relative container. this way you stay within your wrappe…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by Danielku15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants