Esempio n. 1
0
        protected override void OnMouseMove(MouseMoveEvent e)
        {
            base.OnMouseMove(e);

            if (!e.isPropagationStopped)
            {
                return;
            }

            VFXView view = m_Anchor.GetFirstAncestorOfType <VFXView>();

            if (view == null)
            {
                return;
            }

            s_PickedList.Clear();
            view.panel.PickAll(e.mousePosition, s_PickedList);

            VFXDataAnchor anchor = s_PickedList.OfType <VFXDataAnchor>().FirstOrDefault();

            if (anchor != null)
            {
                view.StartEdgeDragInfo(this.edgeDragHelper.draggedPort as VFXDataAnchor, anchor);
            }
            else
            {
                view.StopEdgeDragInfo();
            }
        }