]> git.sesse.net Git - pkanalytics/commitdiff
Make for smoother zooming/dragging, especially dragging.
authorSteinar H. Gunderson <sgunderson@bigfoot.com>
Thu, 13 Jul 2023 17:35:48 +0000 (19:35 +0200)
committerSteinar H. Gunderson <sgunderson@bigfoot.com>
Thu, 13 Jul 2023 17:35:48 +0000 (19:35 +0200)
video_widget.cpp

index 1d899d2507182f8f7c6d98cc206632101d97b85f..b783b00651e2652608ba72b1a649c9160ee7ddaf 100644 (file)
@@ -492,6 +492,7 @@ void VideoWidget::wheelEvent(QWheelEvent *event)
        matmul3x3(tmp2, translation_matrix, zoom_matrix);
 
        fixup_zoom_matrix();
+       update();
 }
 
 void VideoWidget::mousePressEvent(QMouseEvent *e)
@@ -526,6 +527,8 @@ void VideoWidget::mouseMoveEvent(QMouseEvent *e)
 
        last_drag_x = e->position().x();
        last_drag_y = e->position().y();
+
+       update();
 }
 
 // Normalize the matrix so that we never get skew or similar,