timebasedviewselectionmanager: scale/unscale when dragging too

This commit is contained in:
itsmattkc
2023-03-11 13:49:41 -08:00
parent 9f4124beb3
commit 3e47da7009
3 changed files with 23 additions and 19 deletions
+2 -4
View File
@@ -209,7 +209,7 @@ void SeekableWidget::mouseMoveEvent(QMouseEvent *event)
selection_manager_.RubberBandMove(event->pos());
viewport()->update();
} else if (selection_manager_.IsDragging()) {
selection_manager_.DragMove(event);
selection_manager_.DragMove(event->pos());
} else if (dragging_) {
QPointF scene = mapToScene(event->pos());
if (resize_item_) {
@@ -422,9 +422,7 @@ void SeekableWidget::CatchUpScrollEvent()
{
super::CatchUpScrollEvent();
if (this->selection_manager_.IsRubberBanding()) {
this->selection_manager_.RubberBandMove(this->viewport()->mapFromGlobal(QCursor::pos()));
}
this->selection_manager_.ForceDragUpdate();
}
void SeekableWidget::DrawPlayhead(QPainter *p, int x, int y)