beatMouseDown
Description​
This event is fired whenever a the user presses the mouse button on a beat.
- JavaScript
- C#
- Kotlin
readonly beatMouseDown: IEventEmitterOfT<Beat>;IEventEmitterOfT<Beat> BeatMouseDown { get; }val beatMouseDown: IEventEmitterOfT<Beat>Examples​
- JavaScript
- C#
- Android
const api = new alphaTab.AlphaTabApi(document.querySelector('#alphaTab'));
api.beatMouseDown.on((beat) => {
startSelectionOnBeat(beat);
});
var api = new AlphaTabApi<MyControl>(...);
api.BeatMouseDown.On(beat =>
{
StartSelectionOnBeat(args);
});
val api = AlphaTabApi<MyControl>(...)
api.beatMouseDown.on { beat ->
startSelectionOnBeat(args)
}