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

Scroll for smaller amounts #307

Merged
merged 2 commits into from
Feb 5, 2019
Merged

Conversation

jchavarri
Copy link
Member

No companion issue. Found while investigating #288.

When the wheel event would return 0.x we wouldn't move the scroll position. This PR changes the calculation order so that we multiple first by 25 and then round, so every event causes some effect, even if small.

@bryphe
Copy link
Member

bryphe commented Feb 5, 2019

Thanks @jchavarri , nice catch!

Looks like CI is failing due to formatting - might want to try refmt --inplace src/UI_Components/ScrollView.re But code change looks good to me 👍

@jchavarri
Copy link
Member Author

Thanks @bryphe ! I ran refmt and now CI is happy.

One small thing I realized is that to make sure refmt runs with the same version as CI, one can use esy shell and then refmt --in-place src/UI_Components/ScrollView.re from that shell. 😄

Merging then! :shipit:

@jchavarri jchavarri merged commit 8053caf into revery-ui:master Feb 5, 2019
@jchavarri jchavarri deleted the scroll-small branch February 5, 2019 18:08
akinsho pushed a commit to akinsho/revery that referenced this pull request Feb 18, 2019
* Scroll for smaller amounts

* refmt?
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