Since: 0.9.7

beatMouseUp

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.

beatMouseUp.net

Types

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

Parameters

ParametersTypeSummary
beatJavaScriptalphaTab.model.BeatBeat 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.BeatBeat on which the mouse was released over after mouse down. Might be null if no beat could be found in near location.
originalEventJavaScript & jQueryMouseEventThe 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);
});