Since: 0.9.7

beatMouseMove

Description

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

beatMouseMove.net

Types

function(beat, originalEvent)JavaScript
Action<AlphaTab.Model.Beat>.net

Parameters

ParametersTypeSummary
beatJavaScriptalphaTab.model.beatBeat on which the mouse was hovered over during mouse down.
originalEventJavaScript & jQueryMouseEventThe 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.BeatBeat 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);
});