From 994dff91a263b038b3d5990e727b93d0dbdb9d9c Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Thu, 12 Feb 2015 13:37:18 -0500 Subject: 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 --- gtk2_ardour/editor_drag.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'gtk2_ardour/editor_drag.h') 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 -- cgit v1.2.3