Skip to content

Is it possible to be able to have only note objects clickable and not staves and surrounds #1770

Answered by Danielku15
garthholmes asked this question in Q&A
Discussion options

You must be logged in to vote

Hi.
No, this is currently not possible out-of-the-box. You would need to fully opt-out of the built-in click handling via enableuserinteraction and then build your own logic how you wanna handle clicks. You can look at the original click handling code for reference: https://github.com/CoderLine/alphaTab/blob/develop/src/AlphaTabApiBase.ts#L1251

Alternatively you could register a capture event listener on a higher level DOM element and stop event propagation to alphaTab itself based on a custom condition.

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