Commit 6ad13d8a authored by Craig Watson's avatar Craig Watson

Fix scroll speed with hand tool when zoomed in/out

parent a4cb76a7
......@@ -920,7 +920,8 @@ void UBBoardController::zoom(const qreal ratio, QPointF scenePoint)
void UBBoardController::handScroll(qreal dx, qreal dy)
{
mControlView->translate(dx, dy);
qreal antiScaleRatio = 1/(mSystemScaleFactor * currentZoom());
mControlView->translate(dx*antiScaleRatio, dy*antiScaleRatio);
UBApplication::applicationController->adjustDisplayView();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment