use catch up scrolling when dragging items

This commit is contained in:
itsmattkc
2021-01-25 10:22:14 +11:00
parent 2da0aed942
commit 9f99182089
10 changed files with 73 additions and 26 deletions
@@ -771,7 +771,11 @@ void TimelineWidget::ViewMouseMoved(TimelineViewMouseEvent *event)
if (GetConnectedNode()) {
if (active_tool_) {
active_tool_->MouseMove(event);
UpdateViewports();
QMetaObject::invokeMethod(this, "CatchUpScrollToPoint", Qt::QueuedConnection,
Q_ARG(int, qRound(event->GetSceneX())));
} else {
// Mouse is not down, attempt a hover event
TimelineTool* hover_tool = GetActiveTool();