fix nudge/duration clocks when scrolling in BBT mode
This commit is contained in:
parent
9f85a0aaba
commit
ad9757e73c
@ -1823,7 +1823,7 @@ AudioClock::on_scroll_event (GdkEventScroll *ev)
|
||||
step *= 10;
|
||||
}
|
||||
if (is_duration) {
|
||||
if (current_duration () >= timecnt_t (step)) { // XXX this is not right, also step for BBT is too small
|
||||
if (!(current_duration () - step).is_negative()) {
|
||||
AudioClock::set_duration (current_duration () - step, true);
|
||||
}
|
||||
} else if (!_negative_allowed && last_when() < step) {
|
||||
|
Loading…
Reference in New Issue
Block a user