From c981573a4cb6a83e9bfc70966ae29058a0b7199d Mon Sep 17 00:00:00 2001 From: Vincent van Ravesteijn Date: Fri, 7 Aug 2009 13:47:59 +0000 Subject: [PATCH] branch: Fix bug #4464: Missing autoscroll when selecting by mouse git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@30901 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/frontends/qt4/GuiWorkArea.cpp | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/src/frontends/qt4/GuiWorkArea.cpp b/src/frontends/qt4/GuiWorkArea.cpp index fba2c865db..7fb250d516 100644 --- a/src/frontends/qt4/GuiWorkArea.cpp +++ b/src/frontends/qt4/GuiWorkArea.cpp @@ -808,18 +808,7 @@ void GuiWorkArea::generateSyntheticMouseEvent() 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); }