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

Kinetic scrolling #20

Merged
merged 3 commits into from
Sep 6, 2020
Merged

Kinetic scrolling #20

merged 3 commits into from
Sep 6, 2020

Conversation

1HPorange
Copy link
Contributor

I implemented kinetic scrolling to the extent that it makes sense to me right now:

  • Kinetic scrolling is only active when you drag the background, not when you use the scroll wheel or drag the scroll handle. I feel like people would prefer precise scrolling when using those methods.
  • Kinetic velocity (like offset) is stored and updated as a Vec2, event though right now we only use the y component
  • I basically copy-pasted the kinetic part from area.rs; Maybe you would prefer to factor it out, but I'm not sure where to

Copy link
Owner

@emilk emilk left a comment

Choose a reason for hiding this comment

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

Works nicely; thanks!

@emilk emilk merged commit 6b30e21 into emilk:master Sep 6, 2020
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