mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-13 09:15:50 +00:00
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
This commit is contained in:
parent
750d6b6a52
commit
c981573a4c
@ -808,18 +808,7 @@ void GuiWorkArea::generateSyntheticMouseEvent()
|
|||||||
if (synthetic_mouse_event_.restart_timeout)
|
if (synthetic_mouse_event_.restart_timeout)
|
||||||
synthetic_mouse_event_.timeout.start();
|
synthetic_mouse_event_.timeout.start();
|
||||||
|
|
||||||
// Has anything changed on-screen since the last timeout signal
|
// Dispatch the event to the LyX core.
|
||||||
// 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(synthetic_mouse_event_.cmd);
|
dispatch(synthetic_mouse_event_.cmd);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user