Is it possible to be able to have only note objects clickable and not staves and surrounds #1770
-
Hello, I would like to be able to block the click action on and around staves, if possible since I have a floating menu that remains in place even when the page is scrolling that I can make disappear by clicking on the page.. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Hi. 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. |
Beta Was this translation helpful? Give feedback.
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#L1251Alternatively 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.