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

Support for Touch and Mouse scroll #151

Merged
merged 1 commit into from
Dec 16, 2023
Merged

Support for Touch and Mouse scroll #151

merged 1 commit into from
Dec 16, 2023

Conversation

adred
Copy link
Member

@adred adred commented Dec 15, 2023

Changes:

  1. Touch Scroll: Now handled natively by the browser, allowing smooth horizontal scrolling with a touchpad.
  2. Mouse Wheel Scroll: When a mouse wheel event is detected (characterized by larger deltaY values), the component converts this vertical scroll input into horizontal scrolling. This is done by keeping a track of the last 5 deltaY values and checking if any of them are significantly large, indicating a mouse wheel scroll.

@adred adred self-assigned this Dec 15, 2023
@adred adred requested a review from sawka December 15, 2023 23:06
@sawka sawka merged commit 4ff5dcf into main Dec 16, 2023
4 checks passed
@sawka sawka deleted the mouse-scroll branch September 18, 2024 19:55
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