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

Use new scroll delta field in viewport event for smooth scrolling #1827

Merged
merged 2 commits into from Apr 8, 2023

Conversation

Kethku
Copy link
Member

@Kethku Kethku commented Apr 7, 2023

What kind of change does this PR introduce?

  • Fix
    Replaces the old viewport handling with the new scroll_delta event so that we can get actually correct smooth scrolling.

Did this PR introduce a breaking change?

Yes, it disables the smooth scrolling for viewport events which do not have the scroll_delta field. This way we only do it if we know it is correct.

@Kethku Kethku merged commit 8dd95a9 into main Apr 8, 2023
15 checks passed
falcucci pushed a commit to falcucci/neovide that referenced this pull request Apr 19, 2023
…ovide#1827)

* Use new scroll delta event for smooth scrolling

* Fix clippy warning
@Kethku Kethku deleted the use-scroll-delta branch May 11, 2024 23:42
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.

None yet

1 participant