keyframeview: unadjust optimized start position

Fixes #1820
This commit is contained in:
itsmattkc
2022-01-05 11:55:29 -08:00
parent 7af808bb3d
commit 2831f6508b
+1 -1
View File
@@ -290,7 +290,7 @@ void KeyframeView::drawForeground(QPainter *painter, const QRectF &rect)
}
// Find first keyframe to show with binary search
rational left_time = SceneToTime(rect.left() - key_sz);
rational left_time = GetUnadjustedKeyframeTime(keys.first(), SceneToTime(rect.left() - key_sz));
int using_index = BinarySearchFirstKeyframeAfterOrAt(keys, left_time);
rational next_key = RATIONAL_MIN;