Skip to content

[web] limit preventDefault-ing of processed pointer events only for touchscreens#2974

Merged
Vlad Konstantinov (Kpotko) merged 1 commit into
release/1.11from
sh/cp-ff55f9cec33
Apr 13, 2026
Merged

[web] limit preventDefault-ing of processed pointer events only for touchscreens#2974
Vlad Konstantinov (Kpotko) merged 1 commit into
release/1.11from
sh/cp-ff55f9cec33

Conversation

@Schahen

@Schahen Shagen Ogandzhanian (Schahen) commented Apr 13, 2026

Copy link
Copy Markdown

This is cherry-pick of ff55f9c (see #2973)

We fight the undesired toggling of Virtual Keyboard view (caused by input losing it's focus) by prevent defaulting the pointer event if we know that compose processed it. Unfortunately this cancels out the drag-n-drop behaviour for nodes with both clickable and dragAndDropSource modifiers.

The smallest, safest and quickest fix is just to revert to limiting this behaviour to touchscreens. This means that the DnD logic still won't work on mobile devices but this should be addressed separately

Testing

manual + ./gradlew testWeb

Release Notes

Fixes - Web

  • (prerelease fix) Fix dragAndDropSource combined with clickable doesn't allow to start drag

…ouchscreens (#2973)

We fight the undesired toggling of Virtual Keyboard view (caused by
input losing it's focus) by prevent defaulting the pointer event if we
know that compose processed it. Unfortunately this cancels out the
drag-n-drop behaviour for nodes with both `clickable` and
`dragAndDropSource` modifiers.

The smallest, safest and quickest fix is just to revert to limiting this
behaviour to touchscreens. This means that the DnD logic still won't
work on mobile devices but this should be addressed separately

## Testing
manual + `./gradlew testWeb`

## Release Notes
### Fixes - Web

[CMP-10035](https://youtrack.jetbrains.com/issue/CMP-10035)
dragAndDropSource combined with clickable doesn't allow to start drag
@Schahen Shagen Ogandzhanian (Schahen) requested a review from a team April 13, 2026 12:53
@Kpotko Vlad Konstantinov (Kpotko) merged commit b4d6c38 into release/1.11 Apr 13, 2026
17 checks passed
@Kpotko Vlad Konstantinov (Kpotko) deleted the sh/cp-ff55f9cec33 branch April 13, 2026 13:33
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