Beispiel #1
0
        protected void OnPointerUp(PointerUpEvent e)
        {
            if (!m_Active || !target.HasPointerCapture(e.pointerId) || !CanStopManipulation(e))
            {
                return;
            }

            m_Active = false;
            target.ReleasePointer(e.pointerId);
            e.StopPropagation();
        }
        void OnPointerUp(PointerUpEvent evt)
        {
            if (m_ActivatingButton != evt.button || !CanStopManipulation(evt))
            {
                return;
            }

            m_Panning = false;
            target.ReleaseMouse();
            evt.StopPropagation();
        }
        void OnPointerUp(PointerUpEvent e)
        {
            if (!e.isPrimary || e.button != 0)
            {
                return;
            }

            this.ReleasePointer(e.pointerId);
            m_DraggingControlPoint = false;
            m_DraggingTightness    = false;
            e.StopPropagation();
        }
        void OnPointerUp(PointerUpEvent e)
        {
            if (!m_Active || !target.HasPointerCapture(e.pointerId) || !CanStopManipulation(e))
            {
                return;
            }

            var ve  = (e.currentTarget as VisualElement);
            var pos = ve.ChangeCoordinatesTo(m_Header, e.localPosition);

            EndDragResize(pos.x, false);
            m_Active = false;
            target.ReleasePointer(e.pointerId);
            e.StopPropagation();
        }