mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-15 11:06:32 +01:00
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
This commit is contained in:
parent
eb45b3baaa
commit
994dff91a2
2 changed files with 24 additions and 6 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue