summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2009-09-07 07:59:26 +0000
committerrubidium <rubidium@openttd.org>2009-09-07 07:59:26 +0000
commita34d19e9df1f19b6e51fadb329f57f763a727ad5 (patch)
treea7007cc9b32701cc2a6fec9549b46be84f97c574
parent22e9d595591dab19e9d37a42f8d529570f582847 (diff)
downloadopenttd-a34d19e9df1f19b6e51fadb329f57f763a727ad5.tar.xz
(svn r17440) -Fix [FS#3179] (r17375): long scrollbars would scroll when that was not intended. They would also not properly mark the window dirty.
-rw-r--r--src/widgets/dropdown.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/widgets/dropdown.cpp b/src/widgets/dropdown.cpp
index 04c27de88..7ab26026d 100644
--- a/src/widgets/dropdown.cpp
+++ b/src/widgets/dropdown.cpp
@@ -190,6 +190,8 @@ struct DropdownWindow : Window {
virtual void OnTick()
{
this->vscroll.UpdatePosition(this->scrolling);
+ this->scrolling = 0;
+ this->SetDirty();
}
virtual void OnMouseLoop()