Editor Summary: Don't require user to re-click to scroll + zoom.
[ardour.git] / gtk2_ardour / editor_drag.h
index 17e459ba67c1608ba041bf05f58d93301dc8ac10..f2b08d4cfe27dbe412d94eed9f887b3694f442cf 100644 (file)
@@ -907,6 +907,12 @@ private:
        EditorCursor& _cursor;
        bool _stop; ///< true to stop the transport on starting the drag, otherwise false
        double _grab_zoom; ///< editor frames per unit when our grab started
+
+       //used for zooming
+       int _last_mx;
+       int _last_my;
+       int _last_dx;
+       int _last_y_delta;
 };
 
 /** Region fade-in drag */
@@ -1295,21 +1301,5 @@ private:
        bool start;
 };
 
-class RulerZoomDrag : public Drag
-{
-public:
-       RulerZoomDrag (Editor*, ArdourCanvas::Item*);
-
-       void start_grab (GdkEvent*, Gdk::Cursor* c = 0);
-       void motion (GdkEvent *, bool);
-       void finished (GdkEvent*, bool);
-       void aborted (bool);
-
-       virtual bool allow_vertical_autoscroll () const {
-               return false;
-       }
-
-};
-
 #endif /* __gtk2_ardour_editor_drag_h_ */