From 07afa0471118c3db4d19560bad2470412a15c185 Mon Sep 17 00:00:00 2001 From: Luis Lucas Date: Wed, 16 Apr 2014 00:11:10 +0100 Subject: [PATCH] Fix bug which caused slow iamge navigation with some kinds of mouses. --- source/app/ViewArea.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/source/app/ViewArea.cpp b/source/app/ViewArea.cpp index 7fd5ac6..c41d6b9 100755 --- a/source/app/ViewArea.cpp +++ b/source/app/ViewArea.cpp @@ -598,6 +598,10 @@ void ViewArea::mouseMoveEvent( QMouseEvent *event ) { event->accept(); + // Add this code line to avoid slow navigation with some specific mouses + if(qApp->hasPendingEvents()) + return; + QPoint actualPos = windowToView( event->pos() ); QRect updateRect;