summaryrefslogtreecommitdiff
path: root/sw/source/ui/uiview/viewport.cxx
diff options
context:
space:
mode:
authorRuslan Kabatsayev <b7.10110111@gmail.com>2013-02-07 21:09:59 +0400
committerCaolán McNamara <caolanm@redhat.com>2013-02-08 12:16:49 +0000
commit8880c773e779710dc0a08760e92afd709a73ca31 (patch)
tree4793c4b67f452a6db5637a2cc0ccea4a448016d2 /sw/source/ui/uiview/viewport.cxx
parent165a53f3a7f08e65055e08ecd4cfc068c5d353b8 (diff)
Resolves: fdo#43650 Disable tooltip when scrolling writer docs via mouse wheel
Change-Id: I8e0d27b26afef08cc6ef963a2baadcddc78f6b27
Diffstat (limited to 'sw/source/ui/uiview/viewport.cxx')
-rw-r--r--sw/source/ui/uiview/viewport.cxx11
1 files changed, 10 insertions, 1 deletions
diff --git a/sw/source/ui/uiview/viewport.cxx b/sw/source/ui/uiview/viewport.cxx
index 150ba01f6b07..729a42bed3d2 100644
--- a/sw/source/ui/uiview/viewport.cxx
+++ b/sw/source/ui/uiview/viewport.cxx
@@ -692,7 +692,7 @@ IMPL_LINK( SwView, ScrollHdl, SwScrollbar *, pScrollbar )
{
//QuickHelp:
- if( pWrtShell->GetPageCnt() > 1 && Help::IsQuickHelpEnabled() )
+ if( !mbWheelScrollInProgress && pWrtShell->GetPageCnt() > 1 && Help::IsQuickHelpEnabled() )
{
if( !nPgNum || nPgNum != nPhNum )
{
@@ -1290,6 +1290,12 @@ sal_Bool SwView::HandleWheelCommands( const CommandEvent& rCEvt )
}
else
{
+ if(pWData->GetMode()==COMMAND_WHEEL_SCROLL)
+ {
+ // This influences whether quick help is shown
+ mbWheelScrollInProgress=true;
+ }
+
if (pWData && (COMMAND_WHEEL_SCROLL==pWData->GetMode()) && (((sal_uLong)0xFFFFFFFF) == pWData->GetScrollLines()))
{
if (pWData->GetDelta()<0)
@@ -1301,6 +1307,9 @@ sal_Bool SwView::HandleWheelCommands( const CommandEvent& rCEvt )
else
bOk = pEditWin->HandleScrollCommand( rCEvt,
pHScrollbar, pVScrollbar);
+
+ // Restore default state for case when scroll command comes from dragging scrollbar handle
+ mbWheelScrollInProgress=false;
}
return bOk;
}