From: Steinar H. Gunderson Date: Thu, 13 Jul 2023 17:35:48 +0000 (+0200) Subject: Make for smoother zooming/dragging, especially dragging. X-Git-Url: https://git.sesse.net/?a=commitdiff_plain;h=d4c0ea6e97e0b0edd354ef8233f75938ea5dc08a;p=pkanalytics Make for smoother zooming/dragging, especially dragging. --- diff --git a/video_widget.cpp b/video_widget.cpp index 1d899d2..b783b00 100644 --- a/video_widget.cpp +++ b/video_widget.cpp @@ -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,