diff --git a/src/views/select_view.rs b/src/views/select_view.rs index fdac8c9..98abe3d 100644 --- a/src/views/select_view.rs +++ b/src/views/select_view.rs @@ -384,7 +384,13 @@ impl SelectView { position, offset, } => if let Some(position) = position.checked_sub(offset) { - if position < self.last_size { + let scrollbar_size = if self.scrollbase.scrollable() { + (2, 0) + } else { + (0, 0) + }; + let clickable_size = self.last_size.saturating_sub(scrollbar_size); + if position < clickable_size { fix_scroll = false; self.focus.set(position.y + self.scrollbase.start_line); }