noteMouseMove
Description​
This event is fired whenever the user moves the mouse over a note after the user already pressed the button on a note. This event is fired whenever the user moves the mouse over a note after the user already pressed the button on a note.
It is only fired if CoreSettings.includeNoteBounds
was set to true
because
only then this hit detection can be done. A click on a note is considered if the note head or the note number on tabs are clicked as documented in boundsLookup
- JavaScript
- C#
- Kotlin
noteMouseMove: IEventEmitterOfT<Note>;
IEventEmitterOfT<Note> NoteMouseMove { get; set; }
var noteMouseMove: IEventEmitterOfT<Note>
Examples​
- JavaScript
- C#
- Android
const api = new alphaTab.AlphaTabApi(document.querySelector('#alphaTab'));
api.noteMouseMove.on((note) => {
changeNote(note)
});
var api = new AlphaTabApi<MyControl>(...);
api.NoteMouseMove.On(note =>
{
ChangeNote(note);
});
val api = AlphaTabApi<MyControl>(...)
api.noteMouseMove.on { note ->
changeNote(note)
}