Exemple #1
0
        protected override bool MouseDown(Event evt, WindowState state)
        {
            m_Target = PickerUtils.PickedInlineCurveResizer();
            if (m_Target == null)
            {
                return(false);
            }

            m_Captured         = true;
            m_CapturedHeight   = TimelineWindowViewPrefs.GetInlineCurveHeight(m_Target.trackGUI.track);
            m_CaptureMouseYPos = GUIUtility.GUIToScreenPoint(Event.current.mousePosition).y;
            state.AddCaptured(this);

            return(true);
        }