private void OnPointerUp(PointerUpSignal ev) { if (currentSvgRect != null) { if (ev.MouseButton != ev.ActualButton) { currentSvgRect.remove(); currentSvgRect = null; } else { currentSvgRect = null; } } }
private void OnPointerUp(PointerUpSignal ev) { if (currentAction != null) { if (ev.MouseButton != ev.ActualButton) { currentAction.Undo(); } else { currentAction.SetSelectedRect(ev.AnchoredStageX, ev.AnchoredStageY, ev.StageX, ev.StageY); ConfirmShape(); } currentAction = null; } }
void PointerUp(PointerUpSignal e) { element.Style.Display = "none"; }