Skip to main content

beatMouseUp

since 0.9.7

Description​

This event is fired whenever the user releases the mouse after a mouse press on a beat. This event is fired regardless of whether the mouse was released on a beat. The parameter is null if the mouse was released somewhere beside the beat.

beatMouseUpJavaScript
alphaTab.beatMouseUpjQuery
alphaTab.beatMouseUpHTML
BeatMouseUp.net

Types​

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

Parameters​

ParametersTypeSummary
beatJavaScriptalphaTab.model.Beat

Beat on which the mouse was released over after mouse down. Might be null if no beat could be found in near location.

beat.netAlphaTab.Model.Beat

Beat on which the mouse was released over after mouse down. Might be null if no beat could be found in near location.

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.

Examples​

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