summaryrefslogtreecommitdiff
path: root/gtk2_ardour/editor_summary.h
diff options
context:
space:
mode:
authorBen Loftis <ben@harrisonconsoles.com>2017-07-20 14:14:35 -0500
committerBen Loftis <ben@harrisonconsoles.com>2017-07-20 14:15:40 -0500
commit611a150dfb1a96f84bcea57236137c366806dd07 (patch)
tree08ce9b8b50170b6ac24cb3923a562720da874d85 /gtk2_ardour/editor_summary.h
parent0a462d19645ae4b8c75b49b1b67a789245f31e5d (diff)
Editor Summary: Don't require user to re-click to scroll + zoom.
* Use conventions similar to those used in CursorDrag.
Diffstat (limited to 'gtk2_ardour/editor_summary.h')
-rw-r--r--gtk2_ardour/editor_summary.h14
1 files changed, 8 insertions, 6 deletions
diff --git a/gtk2_ardour/editor_summary.h b/gtk2_ardour/editor_summary.h
index afdbf096b9..27ee8ed23e 100644
--- a/gtk2_ardour/editor_summary.h
+++ b/gtk2_ardour/editor_summary.h
@@ -104,10 +104,15 @@ private:
Position _start_position;
- bool _begin_dragging;
-
bool _move_dragging;
- bool _moved;
+
+ //used for zooming
+ int _last_mx;
+ int _last_my;
+ int _last_dx;
+ int _last_dy;
+ int _last_y_delta;
+
std::pair<double, double> _view_rectangle_x;
std::pair<double, double> _view_rectangle_y;
@@ -118,9 +123,6 @@ private:
bool _zoom_trim_dragging;
Position _zoom_trim_position;
- bool _zoom_dragging;
- double _zoom_last_y;
-
bool _old_follow_playhead;
cairo_surface_t* _image;
void render_background_image ();