aboutsummaryrefslogtreecommitdiff
path: root/src/ui
diff options
context:
space:
mode:
Diffstat (limited to 'src/ui')
-rw-r--r--src/ui/render/ScrollBar.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ui/render/ScrollBar.cpp b/src/ui/render/ScrollBar.cpp
index 4343f15a..79c2ea42 100644
--- a/src/ui/render/ScrollBar.cpp
+++ b/src/ui/render/ScrollBar.cpp
@@ -339,8 +339,8 @@ void ScrollBar::RestoreCursor() {
void ScrollBar::BeginAutoCollapseTimer() {
if (!auto_collapse_timer_canceler_ && IsExpanded()) {
- auto_collapse_timer_canceler_ = GetUiApplication()->SetTimeout(
- kScrollBarAutoCollapseDelay, [this] { this->SetExpanded(false); });
+ auto_collapse_timer_canceler_.Reset(GetUiApplication()->SetTimeout(
+ kScrollBarAutoCollapseDelay, [this] { this->SetExpanded(false); }));
}
}