fixed snapping regression introduced by earlier commit

This commit is contained in:
itsmattkc
2021-08-02 19:57:19 -07:00
parent f6eea56310
commit 9f4470f55c
2 changed files with 4 additions and 0 deletions
+2
View File
@@ -217,6 +217,8 @@ bool TimeBasedView::PlayheadMove(QMouseEvent *event)
rational movement;
snap_service_->SnapPoint({mouse_time}, &movement, SnapService::kSnapAll & ~SnapService::kSnapToPlayhead);
mouse_time += movement;
}
SetTime(mouse_time);
+2
View File
@@ -151,6 +151,8 @@ void SeekableWidget::SeekToScreenPoint(int screen)
snap_service_->SnapPoint({playhead_time},
&movement,
SnapService::kSnapAll & ~SnapService::kSnapToPlayhead);
playhead_time += movement;
}
if (playhead_time != GetTime()) {