summaryrefslogtreecommitdiff
path: root/src/window.cpp
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2010-02-04 14:21:20 +0000
committerrubidium <rubidium@openttd.org>2010-02-04 14:21:20 +0000
commit36298c1454b361b16845394e68e2258e1593be9f (patch)
tree65fbcfc6e713406a8bf94ec8f62ecc27b51f10c2 /src/window.cpp
parent228da0ccd34d350ea6f721e67698e20c182c7cd5 (diff)
downloadopenttd-36298c1454b361b16845394e68e2258e1593be9f.tar.xz
(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.
Diffstat (limited to 'src/window.cpp')
-rw-r--r--src/window.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/window.cpp b/src/window.cpp
index 110836e4a..d0bb55800 100644
--- a/src/window.cpp
+++ b/src/window.cpp
@@ -2109,6 +2109,10 @@ static void MouseLoop(MouseClick click, int mousewheel)
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;