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

DeviceInputSystem: Made mousewheel passive option set to false when supported #12761

Merged
merged 2 commits into from
Jul 18, 2022
Merged

DeviceInputSystem: Made mousewheel passive option set to false when supported #12761

merged 2 commits into from
Jul 18, 2022

Conversation

PolygonalSun
Copy link
Contributor

Originally, in two PRs (#12696 and #12703) there was a violation warning that came up because the mouse wheel was not being treated as a passive event. My original fixes addressed the original logic, which was incorrectly assigning the passive property, and makes the default value true. This also includes removal of the preventDefault code from some of our cameras.

This current PR will accomplish two things. One, it will revert the changes from 12703. Second, it will set the default state of the passive property to false. This should address an issue found in the forums where the original behavior would successfully allow for preventDefault but the newest one wouldn't.

Forum link: https://forum.babylonjs.com/t/camera-zoom-scrolling-the-page-introduced-in-5-13-1/32223/6

@azure-pipelines
Copy link

Please make sure to label your PR with "bug", "new feature" or "breaking change" label(s).
To prevent this PR from going to the changelog marked it with the "skip changelog" label.

@azure-pipelines
Copy link

@PolygonalSun PolygonalSun merged commit 62faa50 into BabylonJS:master Jul 18, 2022
@PolygonalSun PolygonalSun deleted the wheel-prevent-default branch July 18, 2022 20:43
RaananW pushed a commit that referenced this pull request Dec 9, 2022
…upported (#12761)

* Revert cam code

* Fixed import issue and verified noop code works

Former-commit-id: 0dd5528a7d18b6bb52505e3f4f83f2fbbe32bb86
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