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

Update library_glfw.js - use delta from getMouseWheelDelta(event) #16480

Merged
merged 2 commits into from
Mar 13, 2022

Conversation

pageldev
Copy link
Contributor

Use delta from getMouseWheelDelta(event) when using GLFW 3. The adjustments made in #7968 (scaling mouse wheel delta) do not apply when using GLFW 3. This fixes that.

Use delta from `getMouseWheelDelta(event)` when using GLFW 3. The adjustments made in #7968 (scaling mouse wheel delta) do not apply when using GLFW 3. This fixes that.
@sbc100 sbc100 requested a review from juj March 13, 2022 04:54
@juj
Copy link
Collaborator

juj commented Mar 13, 2022

Are there any differences in GLFW 2 vs GLFW 3 documentation with respect to mouse wheel values? I suppose not, so this PR would make this more consistent?

In either case, this will mess up all existing people's code for GLFW 3 mouse wheel scrolling. (I don't know how large the current GLFW3 userbase is though) So at minimum there should be a ChangeLog entry - can you add a line to ChangeLog.md about this?

Apart from that, lgtm.

@pageldev
Copy link
Contributor Author

Thanks for the quick response. I added a line in ChangeLog.md.

@juj juj enabled auto-merge (squash) March 13, 2022 16:46
@juj juj merged commit f524cc8 into emscripten-core:main Mar 13, 2022
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