Skip to main content

beatMouseMove

since 0.9.7

Description​

This event is fired whenever the user moves the mouse over a beat after the user already pressed the button on a beat.

beatMouseMoveJavaScript
alphaTab.beatMouseMovejQuery
alphaTab.beatMouseMoveHTML
BeatMouseMove.net
beatMouseMoveAndroid

Types​

function(beat, originalEvent)JavaScript
Action<AlphaTab.Model.Beat>.net
(beat: alphaTab.model.Beat) -> UnitAndroid

Parameters​

ParametersTypeSummary
beatJavaScriptalphaTab.model.Beat

Beat on which the mouse was hovered over during mouse down.

originalEventJavaScript & jQueryMouseEvent

The original mouse event that lead to trigger of the beat event. For the DOM event it is stored in the event.originalEvent.

beat.netAlphaTab.Model.Beat

Beat on which the mouse was hovered over during mouse down.

beatAndroidalphaTab.model.Beat

Beat on which the mouse was hovered over during mouse down.

Examples​

const api = new alphaTab.AlphaTabApi(document.querySelector('#alphaTab'));
api.beatMouseMove.on((beat) => {
expandSelectionToBeat(beat);
});