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

[wasm][js] Modify buttonFlags only on Press and Release #1243

Merged
merged 1 commit into from Apr 8, 2024

Conversation

Schahen
Copy link
Collaborator

@Schahen Schahen commented Apr 8, 2024

Our code was written in the assumption that there's PointerEventType.Press and if not, it's release, but actually it's not the case. That leads to the fact that moving mouse lead to changes in button flags

@Schahen Schahen requested a review from eymar April 8, 2024 12:52
@eymar
Copy link
Collaborator

eymar commented Apr 8, 2024

Thank you!

@@ -62,7 +62,7 @@ internal class ComposeLayer(
}
onPointerEventWithMultitouch(event)
} else {
// macos and desktop`s web don't work properly when using onPointerEventWithMultitouch
// TODO: check this statement: macos doesn't work properly when using onPointerEventWithMultitouch
Copy link
Collaborator

Choose a reason for hiding this comment

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

Is this change in the comment related to this PR?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

yep, the fundamental reason web doesn't work with onPointerEventWithMultitouch was not working properly

@Schahen Schahen merged commit 3dac98c into jb-main Apr 8, 2024
6 checks passed
@Schahen Schahen deleted the shagen/fix-button-flags-resolution branch April 8, 2024 13:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants