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

DeviceEventFactory: Modified event factory to provide correct value for buttons property #13927

Merged
merged 3 commits into from
Jun 5, 2023

Conversation

PolygonalSun
Copy link
Contributor

@PolygonalSun PolygonalSun commented Jun 1, 2023

There was an issue brought up where drag controls where not "letting go" when the mouse button was released. This PR will now properly propagate this value based off of the MouseEvent standard.

Edit: This also contains a little change to out pointer capture is being handled. Basically, if the POINTERDOWN is skipped, the pointer capture bool is still set to true and if the POINTERUP is skipped and there are no buttons pressed, it should be released.

@bjsplat
Copy link
Collaborator

bjsplat commented Jun 1, 2023

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.

Copy link
Contributor

@CedricGuillemet CedricGuillemet left a comment

Choose a reason for hiding this comment

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

Tested with the BRN branch repro, LGTM!

@bjsplat
Copy link
Collaborator

bjsplat commented Jun 1, 2023

Copy link
Member

@RaananW RaananW left a comment

Choose a reason for hiding this comment

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

Seems like the input tests are failing.

@PolygonalSun
Copy link
Contributor Author

Seems like the input tests are failing.

Yeah, I found an issue with a bool in InputManager, I've pushed a fix for that.

@bjsplat
Copy link
Collaborator

bjsplat commented Jun 2, 2023

Visualization tests for webgl1 have failed. If some tests failed because the snapshots do not match, the report can be found at

https://babylonsnapshots.z22.web.core.windows.net/refs/pull/13927/merge/testResults/webgl1/index.html

If tests were successful afterwards, this report might not be available anymore.

@bjsplat
Copy link
Collaborator

bjsplat commented Jun 2, 2023

Visualization tests for webgl2 have failed. If some tests failed because the snapshots do not match, the report can be found at

https://babylonsnapshots.z22.web.core.windows.net/refs/pull/13927/merge/testResults/webgl2/index.html

If tests were successful afterwards, this report might not be available anymore.

@RaananW RaananW merged commit 4b84058 into BabylonJS:master Jun 5, 2023
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants