-
Notifications
You must be signed in to change notification settings - Fork 826
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
tree fix #744
tree fix #744
Conversation
if key_method is not None: | ||
if await invoke(key_method, event): | ||
event.prevent_default() | ||
await invoke(key_method, event) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sight change in semantics here. If there is a key_
method defined for a given key then it won't attempt to try the base classes.
src/textual/widget.py
Outdated
@@ -1080,7 +1093,7 @@ def scroll_to_region( | |||
self.scroll_relative( | |||
delta.x or None, | |||
delta.y or None, | |||
animate=animate, | |||
animate=animate if abs(delta_y) > 1 else False, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Don't animate movement of a single line.
Screen.Recording.2022-09-07.at.15.13.45.mov