diff options
author | rubidium <rubidium@openttd.org> | 2009-09-07 07:59:26 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2009-09-07 07:59:26 +0000 |
commit | a34d19e9df1f19b6e51fadb329f57f763a727ad5 (patch) | |
tree | a7007cc9b32701cc2a6fec9549b46be84f97c574 /src | |
parent | 22e9d595591dab19e9d37a42f8d529570f582847 (diff) | |
download | openttd-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.
Diffstat (limited to 'src')
-rw-r--r-- | src/widgets/dropdown.cpp | 2 |
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() |