Skip to content

[0.82] cherry picks: Fix selectable text not receiving pointer events inside ScrollView#15580

Merged
iamAbhi-916 merged 1 commit into0.82-stablefrom
cherrypicks-selection-fix
Jan 23, 2026
Merged

[0.82] cherry picks: Fix selectable text not receiving pointer events inside ScrollView#15580
iamAbhi-916 merged 1 commit into0.82-stablefrom
cherrypicks-selection-fix

Conversation

@iamAbhi-916
Copy link
Contributor

@iamAbhi-916 iamAbhi-916 commented Jan 23, 2026

Description

Selectable text (<Text selectable={true}>) was not working when placed inside a ScrollView or other parent components that consume pointer events.

Type of Change

  • Bug fix (non-breaking change which fixes an issue)

Why

Make selectable text consume pointer events irrespective of parent container

Resolves
#15578

What

  • Override hitTest() in ParagraphComponentView to claim pointer events for selectable text before parent components
  • Use GetCurrentPoint(Tag()) instead of GetCurrentPoint(-1) to get correct local coordinates

Screenshots

text_fix.mp4

Testing

tested in playground

Changelog

Should this change be included in the release notes: _indicate yes

Add a brief summary of the change to use in the release notes for the next release.
Fixed selectable text not receiving pointer events inside ScrollView

Microsoft Reviewers: Open in CodeFlow

…15577)

* Fix selectable text not working inside ScrollView

* Change files
@iamAbhi-916 iamAbhi-916 requested a review from a team as a code owner January 23, 2026 08:41
Copy link
Contributor

@protikbiswas100 protikbiswas100 left a comment

Choose a reason for hiding this comment

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

LGTM

@iamAbhi-916 iamAbhi-916 merged commit cff8b32 into 0.82-stable Jan 23, 2026
41 checks passed
@iamAbhi-916 iamAbhi-916 deleted the cherrypicks-selection-fix branch January 23, 2026 13:06
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.

3 participants