diff options
author | Carl Hetherington <carl@carlh.net> | 2009-12-22 01:12:41 +0000 |
---|---|---|
committer | Carl Hetherington <carl@carlh.net> | 2009-12-22 01:12:41 +0000 |
commit | ca602cf2161fb4770022d175a7b85e60286e3b3b (patch) | |
tree | ddf13d844dcac1919fcf779b516627603dbc3736 /gtk2_ardour/editor_mouse.cc | |
parent | 9243298a7c0436cbdd216e3c5d4f3b90fe74cdf9 (diff) |
Refactor and clean up some confusion in dragging code.
git-svn-id: svn://localhost/ardour2/branches/3.0@6384 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/editor_mouse.cc')
-rw-r--r-- | gtk2_ardour/editor_mouse.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gtk2_ardour/editor_mouse.cc b/gtk2_ardour/editor_mouse.cc index 4fb7271c47..5fbd76ed49 100644 --- a/gtk2_ardour/editor_mouse.cc +++ b/gtk2_ardour/editor_mouse.cc @@ -1681,7 +1681,7 @@ Editor::scrub () if (scrubbing_direction == 0) { /* first move */ - _session->request_locate (_drag->current_pointer_frame(), false); + _session->request_locate (_drag->adjusted_current_frame (0), false); _session->request_transport_speed (0.1); scrubbing_direction = 1; @@ -2231,7 +2231,7 @@ Editor::point_trim (GdkEvent* event) { RegionView* rv = clicked_regionview; - nframes64_t new_bound = _drag->current_pointer_frame(); + nframes64_t new_bound = _drag->adjusted_current_frame (event); snap_to_with_modifier (new_bound, event); |