summaryrefslogtreecommitdiff
path: root/ui.c
diff options
context:
space:
mode:
Diffstat (limited to 'ui.c')
-rw-r--r--ui.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/ui.c b/ui.c
index 737b7ae..d2f0d23 100644
--- a/ui.c
+++ b/ui.c
@@ -97,6 +97,7 @@ static char *selector_update(Ted *ted, Selector *s) {
// apply scroll
float scroll_speed = 2.5f;
s->scroll += scroll_speed * (float)ted->scroll_total_y;
+ selector_clamp_scroll(ted, s);
return ret;
}