mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-06-23 13:40:35 +01:00
(svn r17440) -Fix [FS#3179] (r17375): long scrollbars would scroll when that was not intended. They would also not properly mark the window dirty.
This commit is contained in:
parent
22e9d59559
commit
a34d19e9df
@ -190,6 +190,8 @@ struct DropdownWindow : Window {
|
|||||||
virtual void OnTick()
|
virtual void OnTick()
|
||||||
{
|
{
|
||||||
this->vscroll.UpdatePosition(this->scrolling);
|
this->vscroll.UpdatePosition(this->scrolling);
|
||||||
|
this->scrolling = 0;
|
||||||
|
this->SetDirty();
|
||||||
}
|
}
|
||||||
|
|
||||||
virtual void OnMouseLoop()
|
virtual void OnMouseLoop()
|
||||||
|
Loading…
Reference in New Issue
Block a user