protected override bool MouseDown(Event evt, WindowState state) { m_Target = PickerUtils.FirstPickedElementOfType <InlineCurveResizeHandle>(); 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); }
public InlineCurveEditor(TimelineTrackGUI trackGUI) { m_TrackGUI = trackGUI; m_ResizeHandle = new InlineCurveResizeHandle(trackGUI); }