This commit is contained in:
itsmattkc
2019-03-01 10:19:57 -08:00
parent 77e0960cf1
commit 64bad4de4e
2 changed files with 72 additions and 71 deletions
+4 -3
View File
@@ -756,12 +756,13 @@ void Timeline::set_zoom_value(double v) {
zoom_just_changed = true;
// set scrollbar to center the playhead
if (olive::ActiveSequence != nullptr
&& !horizontalScrollBar->is_resizing()) {
if (olive::ActiveSequence != nullptr) {
// update scrollbar maximum value for new zoom
set_sb_max();
center_scroll_to_playhead(horizontalScrollBar, zoom, olive::ActiveSequence->playhead);
if (!horizontalScrollBar->is_resizing()) {
center_scroll_to_playhead(horizontalScrollBar, zoom, olive::ActiveSequence->playhead);
}
}
// repaint the timeline for the new zoom/location