]> Shamusworld >> Repos - architektonas/commitdiff
Fix for jump on mouse scroll + wheel zoom.
authorShamus Hammons <jlhamm@acm.org>
Wed, 27 Jan 2021 14:46:58 +0000 (08:46 -0600)
committerShamus Hammons <jlhamm@acm.org>
Wed, 27 Jan 2021 14:46:58 +0000 (08:46 -0600)
src/drawingview.cpp

index ca352c2cb7c8de575b6a59b2e3f250d609f89f27..048eb721b94a18166411bcedb60ae322ca013499 100644 (file)
@@ -2126,6 +2126,8 @@ void DrawingView::mouseReleaseEvent(QMouseEvent * event)
        {
                scrollDrag = false;
                setCursor(Qt::ArrowCursor);
+               // Need to convert this, since it's in Qt coordinates (for wheelEvent)
+               oldPoint = Painter::QtToCartesianCoords(oldPoint);
        }
 }