[Libreoffice-commits] .: vcl/win
Thorsten Behrens
thorsten at kemper.freedesktop.org
Fri May 6 16:04:40 PDT 2011
vcl/win/source/window/salframe.cxx | 4 ++++
1 file changed, 4 insertions(+)
New commits:
commit 13028e139b396aa641e1d55d5e091c42b2e32215
Author: Thorsten Behrens <tbehrens at novell.com>
Date: Sat May 7 01:04:27 2011 +0200
Swap direction on win32 horizontal scrolling
Fix for fdo#36380 - seems win32 reports negated scrolling for the
horizontal case.
diff --git a/vcl/win/source/window/salframe.cxx b/vcl/win/source/window/salframe.cxx
index 474f953..e3567c7 100644
--- a/vcl/win/source/window/salframe.cxx
+++ b/vcl/win/source/window/salframe.cxx
@@ -3529,6 +3529,10 @@ static long ImplHandleWheelMsg( HWND hWnd, UINT nMsg, WPARAM wParam, LPARAM lPar
{
aWheelEvt.mnScrollLines = aSalShlData.mnWheelScrollChars;
aWheelEvt.mbHorz = TRUE;
+
+ // fdo#36380 - seems horiz scrolling has swapped direction
+ aWheelEvt.mnDelta *= -1;
+ aWheelEvt.mnNotchDelta *= -1;
}
if ( nWinModCode & MK_SHIFT )
More information about the Libreoffice-commits
mailing list