mirror of
https://github.com/Ardour/ardour.git
synced 2026-01-04 20:55:48 +01:00
make Drag::grab_time() etc. follow the drag's _time_domain
This commit is contained in:
parent
796785b42f
commit
eb0b3f253a
1 changed files with 1 additions and 1 deletions
|
|
@ -314,7 +314,7 @@ Drag::start_grab (GdkEvent* event, Gdk::Cursor *cursor)
|
|||
|
||||
const samplepos_t pos = _editor->canvas_event_sample (event, &_grab_x, &_grab_y);
|
||||
|
||||
if (_editor->default_time_domain() == Temporal::AudioTime) {
|
||||
if (_time_domain == Temporal::AudioTime) {
|
||||
_raw_grab_time = timepos_t (pos);
|
||||
} else {
|
||||
_raw_grab_time = timepos_t (timepos_t (pos).beats());
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue