v...@lyx.org schreef:
Author: vfr
Date: Fri Aug  7 15:47:59 2009
New Revision: 30901
URL: http://www.lyx.org/trac/changeset/30901

Log:
branch: Fix bug #4464: Missing autoscroll when selecting by mouse

Modified:
   lyx-devel/branches/BRANCH_1_6_X/src/frontends/qt4/GuiWorkArea.cpp

Modified: lyx-devel/branches/BRANCH_1_6_X/src/frontends/qt4/GuiWorkArea.cpp
==============================================================================
--- lyx-devel/branches/BRANCH_1_6_X/src/frontends/qt4/GuiWorkArea.cpp   Fri Aug 
 7 15:38:27 2009        (r30900)
+++ lyx-devel/branches/BRANCH_1_6_X/src/frontends/qt4/GuiWorkArea.cpp   Fri Aug 
 7 15:47:59 2009        (r30901)
@@ -808,18 +808,7 @@
        if (synthetic_mouse_event_.restart_timeout)
                synthetic_mouse_event_.timeout.start();
- // Has anything changed on-screen since the last timeout signal
-       // was received?
-       int const min_scrollbar = verticalScrollBar()->minimum();
-       int const max_scrollbar = verticalScrollBar()->maximum();
-       if (min_scrollbar == synthetic_mouse_event_.min_scrollbar_old
-               && max_scrollbar == synthetic_mouse_event_.max_scrollbar_old) {
-               return;
-       }
-       // Yes it has. Store the params used to check this.
-       synthetic_mouse_event_.min_scrollbar_old = min_scrollbar;
-       synthetic_mouse_event_.max_scrollbar_old = max_scrollbar;
-       // ... and dispatch the event to the LyX core.
+       // Dispatch the event to the LyX core.
        dispatch(synthetic_mouse_event_.cmd);
 }

Could somebody with Qt 4.2 test branch whether strange things happen when scrolling while selecting with the mouse.

Vincent

Reply via email to