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

fix: normalize wheel input directionally for more predictable input #1579

Merged
merged 1 commit into from
Jun 24, 2021

Conversation

Westbrook
Copy link
Contributor

@Westbrook Westbrook commented Jun 24, 2021

Description

Use wheel directionally rather than based on "distance" for more predictable input.

Related Issue

fixes #1531

Motivation and Context

Users should not be surprised.

How Has This Been Tested?

Unit tests.

Screenshots (if appropriate):

https://westbrook-numberfield-wheel-step--spectrum-web-components.netlify.app/components/number-field

Types of changes

  • Bug fix (non-breaking change which fixes an issue)

Checklist:

  • I have signed the Adobe Open Source CLA.
  • My code follows the code style of this project.
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • I have read the CONTRIBUTING document.
  • I have added tests to cover my changes.
  • All new and existing tests passed.

Copy link
Collaborator

@najikahalsema najikahalsema left a comment

Choose a reason for hiding this comment

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

So, I tested this with my mouse (I actually have a scroll wheel!!!) and it works great, save for the inversion. I saw that you mentioned that in your issue linked to this that you attempted to try and fix that... Is that still something we can't resolve? If not, I think it's fine as is, but we may want to denote that in the docs, create a separate issue, etc.

@Westbrook
Copy link
Contributor Author

Indeed. If there is a path to altering that later on, we'll come back to this. Also, I corrected the issue that this PR closes so that we can continue to track the direction question past this fix.

@Westbrook Westbrook merged commit e4383a8 into main Jun 24, 2021
@Westbrook Westbrook deleted the westbrook/numberfield-wheel-step branch June 24, 2021 18:23
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.

Step in sp-number-field does not affect scrolling
2 participants