Пример #1
0
        protected internal override void PostDispatch(IPanel panel)
        {
            bool flag = PointerType.IsDirectManipulationDevice(base.pointerType);

            if (flag)
            {
                panel.ReleasePointer(base.pointerId);
                BaseVisualElementPanel baseVisualElementPanel = panel as BaseVisualElementPanel;
                if (baseVisualElementPanel != null)
                {
                    baseVisualElementPanel.ClearCachedElementUnderPointer(this);
                }
            }
            bool flag2 = panel.ShouldSendCompatibilityMouseEvents(this);

            if (flag2)
            {
                using (MouseUpEvent pooled = MouseUpEvent.GetPooled(this))
                {
                    pooled.target = base.target;
                    pooled.target.SendEvent(pooled);
                }
            }
            panel.ActivateCompatibilityMouseEvents(base.pointerId);
            base.PostDispatch(panel);
        }
Пример #2
0
        protected internal override void PostDispatch(IPanel panel)
        {
            if (PointerType.IsDirectManipulationDevice(pointerType))
            {
                panel.ReleasePointer(pointerId);
                BaseVisualElementPanel basePanel = panel as BaseVisualElementPanel;
                basePanel?.SetElementUnderPointer(null, this);
            }

            if (panel.ShouldSendCompatibilityMouseEvents(this))
            {
                using (var evt = MouseUpEvent.GetPooled(this))
                {
                    evt.target = target;
                    evt.target.SendEvent(evt);
                }
            }

            panel.ActivateCompatibilityMouseEvents(pointerId);

            base.PostDispatch(panel);
        }