changeset 14445:19d94a8ee95c draft

(svn r19002) -Fix [FS#1140]: [OSX] Problems with scrolling touchpad (Peter Thorson). I can/have not test(ed) it, it cannot break non OSX builds.
author rubidium <rubidium@openttd.org>
date Thu, 04 Feb 2010 14:21:20 +0000
parents 548a0484831c
children b1ff74cc5b7d
files src/window.cpp
diffstat 1 files changed, 4 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/window.cpp
+++ b/src/window.cpp
@@ -2109,6 +2109,10 @@
 				if (!(w->flags4 & WF_DISABLE_VP_SCROLL)) {
 					_scrolling_viewport = true;
 					_cursor.fix_at = true;
+
+					/* clear 2D scrolling caches before we start a 2D scroll */
+					_cursor.h_wheel = 0;
+					_cursor.v_wheel = 0;
 				}
 				break;