Skip to content
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

Add easing parameter to Widget.scroll_* methods #1144

Merged
merged 4 commits into from
Nov 9, 2022
Merged

Conversation

darrenburns
Copy link
Member

No description provided.

Copy link
Collaborator

@willmcgugan willmcgugan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just had a thought. Slight change from the issue...

I think what we should do is allow easing to be None by default. And in scroll_to we should have a DEFAULT_SCROLL_EASING constant.

That way we don't need to repeat "out_cubic" in these methods. It will also allow us to change the scroll easing, or move it in to config at a later date.

@willmcgugan willmcgugan merged commit 45cb770 into main Nov 9, 2022
@willmcgugan willmcgugan deleted the scroll-easing branch November 9, 2022 17:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants