Slower scrolling for dropdown lists and scrollbars
This commit is contained in:
@@ -260,8 +260,11 @@ struct DropdownWindow : Window {
|
||||
if (this->scrolling != 0) {
|
||||
int pos = this->vscroll->GetPosition();
|
||||
|
||||
this->vscroll->UpdatePosition(this->scrolling);
|
||||
this->scrolling = 0;
|
||||
if (_scroller_click_timeout <= 1) {
|
||||
_scroller_click_timeout = SCROLLER_CLICK_DELAY;
|
||||
this->vscroll->UpdatePosition(this->scrolling);
|
||||
this->scrolling = 0;
|
||||
}
|
||||
|
||||
if (pos != this->vscroll->GetPosition()) {
|
||||
this->SetDirty();
|
||||
|
||||
Reference in New Issue
Block a user