public void OnEndDrag(PointerEventData eventData) { if (!this.pressed) { return; } this.pressed = false; ListenerUtility.Calls(this.onEndDragListeners); }
public void OnBeginDrag(PointerEventData eventData) { this.pressed = true; var time = Time.realtimeSinceStartup; var pos = this.ToPosition(eventData.position); this.timeSlice.Clear(); if (this.IsAvailableFastSwipe) { this.timeSlice.AddLast(new TimeSlice { time = time, position = pos, }); } this.startPos = pos; ListenerUtility.Calls(this.onStartDragListeners); }
public void OnDrag(PointerEventData eventData) { if (!this.pressed) { return; } var time = Time.realtimeSinceStartup; var pos = this.ToPosition(eventData.position); if (this.IsAvailableFastSwipe) { this.timeSlice.AddLast(new TimeSlice { time = time, position = pos, }); this.UpdateTimeSlice(time); } ListenerUtility.Calls(this.onDraggingListeners); }
protected override void OnResize() { ListenerUtility.Calls(this.onResizeListeners); }
public void OnBeginDrag(PointerEventData eventData) { this.pressed = true; ListenerUtility.Calls(this.onStartDragListeners); }