make Drag::grab_time() etc. follow the drag's _time_domain
This commit is contained in:
parent
796785b42f
commit
eb0b3f253a
@ -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());
|
||||||
|
Loading…
Reference in New Issue
Block a user