(self, animate: bool = True)
| 757 | self.scroll_pointer_to_center() |
| 758 | |
| 759 | def scroll_pointer_to_center(self, animate: bool = True): |
| 760 | if self.pointer_line is None: |
| 761 | return |
| 762 | y_offset = self.pointer_line - self.scrollable_content_region.height // 2 |
| 763 | scroll_distance = abs(y_offset - self.scroll_offset.y) |
| 764 | self.scroll_to( |
| 765 | y=y_offset, |
| 766 | animate=animate and 100 > scroll_distance > 1, |
| 767 | duration=0.2, |
| 768 | ) |
| 769 | |
| 770 | def watch_show_find(self, show_find: bool) -> None: |
| 771 | self.clear_caches() |
no outgoing calls
no test coverage detected