diff options
author | Kurt Zenker <kz@openoffice.org> | 2008-03-05 15:51:53 +0000 |
---|---|---|
committer | Kurt Zenker <kz@openoffice.org> | 2008-03-05 15:51:53 +0000 |
commit | 7c4b2626237c13400466118c279a3b1f9ec3ccd5 (patch) | |
tree | bae63730b6032fdd7642515d2726815fef27d2d3 /vcl/win/source/window/salframe.cxx | |
parent | 975236711d49b82212b41f129036dc997e48812d (diff) |
INTEGRATION: CWS vcl86_DEV300 (1.148.98); FILE MERGED
2008/02/09 12:05:13 pl 1.148.98.2: RESYNC: (1.148-1.150); FILE MERGED
2008/02/08 08:17:36 pl 1.148.98.1: #i85893# support wheel events with small deltas
Diffstat (limited to 'vcl/win/source/window/salframe.cxx')
-rw-r--r-- | vcl/win/source/window/salframe.cxx | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/vcl/win/source/window/salframe.cxx b/vcl/win/source/window/salframe.cxx index 842661397822..b956bfdccb4c 100644 --- a/vcl/win/source/window/salframe.cxx +++ b/vcl/win/source/window/salframe.cxx @@ -4,9 +4,9 @@ * * $RCSfile: salframe.cxx,v $ * - * $Revision: 1.151 $ + * $Revision: 1.152 $ * - * last change: $Author: vg $ $Date: 2008-02-12 13:12:00 $ + * last change: $Author: kz $ $Date: 2008-03-05 16:51:53 $ * * The Contents of this file are made available subject to * the terms of GNU Lesser General Public License Version 2.1. @@ -3503,6 +3503,13 @@ static long ImplHandleWheelMsg( HWND hWnd, UINT nMsg, WPARAM wParam, LPARAM lPar aWheelEvt.mnCode = 0; aWheelEvt.mnDelta = (short)HIWORD( wParam ); aWheelEvt.mnNotchDelta = aWheelEvt.mnDelta/WHEEL_DELTA; + if( aWheelEvt.mnNotchDelta == 0 ) + { + if( aWheelEvt.mnDelta > 0 ) + aWheelEvt.mnNotchDelta = 1; + else if( aWheelEvt.mnDelta < 0 ) + aWheelEvt.mnNotchDelta = -1; + } if( nMsg == WM_MOUSEWHEEL ) { |