Skip to content

Commit

Permalink
Enable animation
Browse files Browse the repository at this point in the history
  • Loading branch information
darrenburns committed Dec 17, 2024
1 parent 5a048b9 commit 0956ec4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/textual/widgets/_footer.py
Original file line number Diff line number Diff line change
Expand Up @@ -253,14 +253,14 @@ async def bindings_changed(self, screen: Screen) -> None:
def _on_mouse_scroll_down(self, event: events.MouseScrollDown) -> None:
if self.allow_horizontal_scroll:
self._clear_anchor()
if self._scroll_right_for_pointer(animate=False):
if self._scroll_right_for_pointer(animate=True):
event.stop()
event.prevent_default()

def _on_mouse_scroll_up(self, event: events.MouseScrollUp) -> None:
if self.allow_horizontal_scroll:
self._clear_anchor()
if self._scroll_left_for_pointer(animate=False):
if self._scroll_left_for_pointer(animate=True):
event.stop()
event.prevent_default()

Expand Down

0 comments on commit 0956ec4

Please sign in to comment.