Skip to content

Introduce orphanPointerMoveEvents test #2192

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

Open
wants to merge 1 commit into
base: jb-main
Choose a base branch
from

Conversation

Schahen
Copy link

@Schahen Schahen commented Jun 23, 2025

The sole purpose of this PR is to introduce separate test that documents current behaviour of pointer event system whenever some inconsistent set of move events is passed.

This behaviour should be fixed and the test will be corrected alongside with that fix.
See https://youtrack.jetbrains.com/issue/CMP-8430/Sequence-of-Move-PointerInputEvents-cancel-out-press-PointerInputEvent-under-certain-conditions

Testing

./gradlew testWeb testDesktop

Release Notes

N/A

@Schahen Schahen requested a review from MatkovIvan June 23, 2025 14:03

// this sequence of events triggers click since heterogenous "move" events does not affect release
// this never suppose to happen but actually happens
// see https://youtrack.jetbrains.com/issue/CMP-8430/Sequence-of-Move-PointerInputEvents-cancel-out-press-PointerInputEvent-under-certain-conditions
Copy link
Member

Choose a reason for hiding this comment

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

I'd create a fix without postponing instead of adding the test for current behaviour.

It should be simple - we already have such logic for pointers inside SyntheticEventSender, so you just need to add buttons field check there

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