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

Types

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

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.

Examples

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