Example #1
0
        protected internal override void PostDispatch(IPanel panel)
        {
            if (!isDefaultPrevented)
            {
                if (panel.ShouldSendCompatibilityMouseEvents(this))
                {
                    using (var evt = MouseDownEvent.GetPooled(this))
                    {
                        evt.target = target;
                        evt.target.SendEvent(evt);
                    }
                }
            }
            else
            {
                panel.PreventCompatibilityMouseEvents(pointerId);
            }

            base.PostDispatch(panel);
        }
        protected internal override void PostDispatch(IPanel panel)
        {
            bool flag = !base.isDefaultPrevented;

            if (flag)
            {
                bool flag2 = panel.ShouldSendCompatibilityMouseEvents(this);
                if (flag2)
                {
                    using (MouseDownEvent pooled = MouseDownEvent.GetPooled(this))
                    {
                        pooled.target = base.target;
                        pooled.target.SendEvent(pooled);
                    }
                }
            }
            else
            {
                panel.PreventCompatibilityMouseEvents(base.pointerId);
            }
            base.PostDispatch(panel);
        }