Skip to content

fix: keep preventDefault working in the legacy mouse/touch bridge#890

Open
akx wants to merge 1 commit into
tomkp:masterfrom
akx:fix-styled
Open

fix: keep preventDefault working in the legacy mouse/touch bridge#890
akx wants to merge 1 commit into
tomkp:masterfrom
akx:fix-styled

Conversation

@akx

@akx akx commented Jun 9, 2026

Copy link
Copy Markdown

I noticed the "styled" example wasn't working - looks like it probably broke with #879.

Spreading a React SyntheticEvent only copies own properties,
so preventDefault and stopPropagation were dropped.

The synthetic events might not have real pointer IDs,
so guard against `setPointerCapture` throwing.
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.

1 participant