diff options
author | Carl Hetherington <carl@carlh.net> | 2010-09-09 01:38:12 +0000 |
---|---|---|
committer | Carl Hetherington <carl@carlh.net> | 2010-09-09 01:38:12 +0000 |
commit | 613fe6353ade9c0c6d8205b4b09dd48a0d9d617f (patch) | |
tree | ce0d86b5215ec00a6e7ed89da1261c4d9a369ede /gtk2_ardour/editor_drag.h | |
parent | db680ab6d3d115e22eb8cf0a39340de9335aae7d (diff) |
Fix confusion with _pointer_frame_offset and snapping; makes e.g. playhead drag with grid snap to region bounds work.
git-svn-id: svn://localhost/ardour2/branches/3.0@7758 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/editor_drag.h')
-rw-r--r-- | gtk2_ardour/editor_drag.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/gtk2_ardour/editor_drag.h b/gtk2_ardour/editor_drag.h index 49d131b52b..7f17a22838 100644 --- a/gtk2_ardour/editor_drag.h +++ b/gtk2_ardour/editor_drag.h @@ -185,6 +185,10 @@ protected: return _grab_y; } + ARDOUR::framepos_t raw_grab_frame () const { + return _raw_grab_frame; + } + ARDOUR::framepos_t grab_frame () const { return _grab_frame; } @@ -217,6 +221,7 @@ private: double _grab_y; ///< trackview y of the grab start position double _last_pointer_x; ///< trackview x of the pointer last time a motion occurred double _last_pointer_y; ///< trackview y of the pointer last time a motion occurred + ARDOUR::framepos_t _raw_grab_frame; ///< unsnapped frame that the mouse was at when start_grab was called, or 0 nframes64_t _grab_frame; ///< adjusted_frame that the mouse was at when start_grab was called, or 0 nframes64_t _last_pointer_frame; ///< adjusted_frame the last time a motion occurred }; |