13
0

make Drag::grab_time() etc. follow the drag's _time_domain

This commit is contained in:
Paul Davis 2021-12-04 19:52:42 -07:00
parent 796785b42f
commit eb0b3f253a

View File

@ -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); 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); _raw_grab_time = timepos_t (pos);
} else { } else {
_raw_grab_time = timepos_t (timepos_t (pos).beats()); _raw_grab_time = timepos_t (timepos_t (pos).beats());