/// <summary> /// Do something when the button is clicked. /// </summary> /// <param name="e">Mouse up event.</param> public void onMouseUp(Event e) { // Don't scroll the page. e.PreventDefault(); // Don't propagate mousewheel event (zooming). e.StopPropagation(); // Stop binding to mouseup and mousemove events--flyout mouseup would normally // do this, but we're skipping that. Flyout.terminateDrag_(); this.callback_?.Invoke(this); }
/// <summary> /// Stop binding to the global mouseup and mousemove events. /// </summary> internal static void terminateDrag_() { BlockSvg.terminateDrag(); Flyout.terminateDrag_(); }