@@ -88,8 +88,6 @@ impl<T: Component> Popup<T> {
89 pub fn scroll(&mut self, offset: usize, direction: bool) {
89 pub fn scroll(&mut self, offset: usize, direction: bool) {
90 if direction {
90 if direction {
91− self.scroll += offset;
93 let max_offset = self.child_size.1.saturating_sub(self.size.1);
91 let max_offset = self.child_size.1.saturating_sub(self.size.1);
94 self.scroll = (self.scroll + offset).min(max_offset as usize);
92 self.scroll = (self.scroll + offset).min(max_offset as usize);