public void OnPointerUp(PointerEventData eventData) { if (eventData.button == PointerEventData.InputButton.Left) { dragging = false; OnEndDragging?.Invoke(this); } }
public void OnEndDrag(PointerEventData eventData) { _currentDragPoint = eventData.position; UpdateDragDto(); OnEndDragging?.Invoke(_dragDto); }
/// <summary> /// Invokes the <see cref="OnEndDrag"/> event /// </summary> public void OnEndDrag(PointerEventData eventData) { OnEndDragging?.Invoke(eventData); IsBeingMoved = false; Cursor.visible = true; }