protected virtual void ProcessDownEvent(EventBase evt, Vector2 localPosition, int pointerId) { this.active = true; base.target.CapturePointer(pointerId); bool flag = !(evt is IPointerEvent); if (flag) { base.target.panel.ProcessPointerCapture(PointerId.mousePointerId); } this.lastMousePosition = localPosition; bool flag2 = this.IsRepeatable(); if (flag2) { bool flag3 = base.target.ContainsPoint(localPosition); if (flag3) { this.Invoke(evt); } bool flag4 = this.m_Repeater == null; if (flag4) { this.m_Repeater = base.target.schedule.Execute(new Action <TimerState>(this.OnTimer)).Every(this.m_Interval).StartingIn(this.m_Delay); } else { this.m_Repeater.ExecuteLater(this.m_Delay); } } base.target.pseudoStates |= PseudoStates.Active; evt.StopImmediatePropagation(); }
protected internal override void PostDispatch(IPanel panel) { EventBase eventBase = ((IMouseEventInternal)this).sourcePointerEvent as EventBase; bool flag = eventBase != null; if (flag) { Debug.Assert(eventBase.processed); BaseVisualElementPanel expr_28 = panel as BaseVisualElementPanel; if (expr_28 != null) { expr_28.CommitElementUnderPointers(); } bool isPropagationStopped = base.isPropagationStopped; if (isPropagationStopped) { eventBase.StopPropagation(); } bool isImmediatePropagationStopped = base.isImmediatePropagationStopped; if (isImmediatePropagationStopped) { eventBase.StopImmediatePropagation(); } bool isDefaultPrevented = base.isDefaultPrevented; if (isDefaultPrevented) { eventBase.PreventDefault(); } } base.PostDispatch(panel); }