13
0

fix nudge/duration clocks when scrolling in BBT mode

This commit is contained in:
Paul Davis 2022-12-07 11:13:19 -07:00
parent 9f85a0aaba
commit ad9757e73c

View File

@ -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) {