fixed snapping regression introduced by earlier commit
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -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()) {
|
||||
|
||||
Reference in New Issue
Block a user