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
+3 -7
View File
@@ -258,9 +258,7 @@ void KeyframeView::CatchUpScrollEvent()
{
super::CatchUpScrollEvent();
if (this->selection_manager_.IsRubberBanding()) {
this->selection_manager_.RubberBandMove(this->viewport()->mapFromGlobal(QCursor::pos()));
}
this->selection_manager_.ForceDragUpdate();
}
void KeyframeView::mousePressEvent(QMouseEvent *event)
@@ -296,7 +294,7 @@ void KeyframeView::mouseMoveEvent(QMouseEvent *event)
} else if (selection_manager_.IsDragging()) {
QString tip;
KeyframeDragMove(event, tip);
selection_manager_.DragMove(event, tip);
selection_manager_.DragMove(event->pos(), tip);
} else if (selection_manager_.IsRubberBanding()) {
selection_manager_.RubberBandMove(event->pos());
Redraw();
@@ -629,9 +627,7 @@ void KeyframeView::ShowKeyframePropertiesDialog()
void KeyframeView::UpdateRubberBandForScroll()
{
if (this->selection_manager_.IsRubberBanding()) {
this->selection_manager_.RubberBandMove(this->viewport()->mapFromGlobal(QCursor::pos()));
}
this->selection_manager_.ForceDragUpdate();
}
void KeyframeView::Redraw()