Slower scrolling for dropdown lists and scrollbars

This commit is contained in:
pelya
2014-07-20 00:35:07 +03:00
parent fb567341fc
commit 7991048105
4 changed files with 11 additions and 5 deletions

View File

@@ -256,8 +256,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();