summaryrefslogtreecommitdiff
path: root/gtk2_ardour/editor_drag.h
diff options
context:
space:
mode:
authorPaul Davis <paul@linuxaudiosystems.com>2015-02-12 13:37:18 -0500
committerPaul Davis <paul@linuxaudiosystems.com>2015-02-13 16:21:37 -0500
commit994dff91a263b038b3d5990e727b93d0dbdb9d9c (patch)
tree21f0e58c52e90f4a87755e7f85e8363efd4aca6b /gtk2_ardour/editor_drag.h
parenteb45b3baaa1d2565da3ce04b91f924df80512725 (diff)
detect if drags appear to be vertical or horizontal as we cross the move threshold
Conflicts: gtk2_ardour/editor_drag.cc gtk2_ardour/editor_drag.h
Diffstat (limited to 'gtk2_ardour/editor_drag.h')
-rw-r--r--gtk2_ardour/editor_drag.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/gtk2_ardour/editor_drag.h b/gtk2_ardour/editor_drag.h
index 64e894c092..ce983cf4f2 100644
--- a/gtk2_ardour/editor_drag.h
+++ b/gtk2_ardour/editor_drag.h
@@ -236,6 +236,8 @@ private:
bool _move_threshold_passed; ///< true if the move threshold has been passed, otherwise false
bool _starting_point_passed; ///< true if we called move () with first_move flag, otherwise false
bool _was_double_click; ///< true if drag initiated by a double click event
+ bool _initially_vertical; ///< true if after move threshold is passed we appear to be moving vertically; undefined before that
+ bool _was_double_click; ///< true if drag initiated by a double click event
double _grab_x; ///< trackview x of the grab start position
double _grab_y; ///< y of the grab start position, possibly adjusted if _trackview_only is true
double _last_pointer_x; ///< trackview x of the pointer last time a motion occurred