protected override void OnInput(InputEvent input) { InputEvent.EventType type = input.type; if (type != InputEvent.EventType.Press) { if (type != InputEvent.EventType.Release) { if (type == InputEvent.EventType.Drag) { if (Mathf.Abs(this.dragStartedAt - input.position.y) > this.dragStartLimit) { this.dragStartedAt = -1f; this.vScroller.OnDrag(input.position); } } } else { this.vScroller.OnRelease(); if (Mathf.Abs(this.dragStartedAt - input.position.y) <= this.dragStartLimit) { base.SendMessage("VerticalScrollButtonActivate", SendMessageOptions.DontRequireReceiver); } } } else { this.vScroller.OnPress(input.position); this.dragStartedAt = input.position.y; } }
protected override void OnInput(InputEvent input) { if (this.slider == null) { return; } if (this.episodeSelector != null && this.episodeSelector.IsRotating) { return; } InputEvent.EventType type = input.type; if (type != InputEvent.EventType.Press) { if (type != InputEvent.EventType.Release) { if (type == InputEvent.EventType.Drag) { this.OnDrag(input.position); } } else { this.OnPress(false, default(Vector3), false); } } else { this.OnPress(true, input.position, false); } }
protected override void OnInput(InputEvent input) { InputEvent.EventType type = input.type; if (type != InputEvent.EventType.Press) { if (type != InputEvent.EventType.Release) { if (type == InputEvent.EventType.Drag) { this.OnDrag(input.position); } } else { this.OnRelease(); } } else { this.OnPress(input.position); } }