Skip to content

Commit

Permalink
Tidy up the docstring of Widget._scroll_up_for_pointer
Browse files Browse the repository at this point in the history
Delivering on a promise made in Textualize#1920.
  • Loading branch information
davep committed Mar 1, 2023
1 parent ca1abcf commit b617d67
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions src/textual/widget.py
Original file line number Diff line number Diff line change
Expand Up @@ -1858,15 +1858,14 @@ def _scroll_up_for_pointer(
"""Scroll up one position, taking scroll sensitivity into account.
Args:
animate: Animate scroll. Defaults to True.
speed: Speed of scroll if animate is True. Or None to use duration.
duration: Duration of animation, if animate is True and speed is None.
easing: An easing method for the scrolling animation. Defaults to "None",
which will result in Textual choosing the configured default scrolling easing function.
force: Force scrolling even when prohibited by overflow styling. Defaults to `False`.
animate: Animate scroll.
speed: Speed of scroll if `animate` is `True`; or `None` to use duration.
duration: Duration of animation, if `animate` is `True` and speed is `None`.
easing: An easing method for the scrolling animation.
force: Force scrolling even when prohibited by overflow styling.
Returns:
True if any scrolling was done.
`True` if any scrolling was done.
Note:
How much is scrolled is controlled by
Expand Down

0 comments on commit b617d67

Please sign in to comment.