Skip to content

[lexical-table] Bug Fix: Fix table selection for touch devices#7656

Merged
etrepum merged 1 commit intofacebook:mainfrom
circlingthesun:fix-table-select
Jul 3, 2025
Merged

[lexical-table] Bug Fix: Fix table selection for touch devices#7656
etrepum merged 1 commit intofacebook:mainfrom
circlingthesun:fix-table-select

Conversation

@circlingthesun
Copy link
Copy Markdown
Contributor

Description

Currently tapping on cell in a table on mobile while the selection is in another cell creates a cell selection, this change ensures that it only happens when dragging.

Closes #7650

@vercel
Copy link
Copy Markdown

vercel bot commented Jun 27, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
lexical ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jun 27, 2025 7:39pm
lexical-playground ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jun 27, 2025 7:39pm

@etrepum
Copy link
Copy Markdown
Collaborator

etrepum commented Jul 2, 2025

I think this is probably closer to the ideal behavior but scrolling removes the selection and with this scheme it's not possible to select more than a screen full of the table since it doesn't scroll internally with the selection

ScreenRecording_07-02-2025.16-56-02_1.mov

@circlingthesun
Copy link
Copy Markdown
Contributor Author

@etrepum this behaviour also happens on the current playground version:

ScreenRecording_07-03-2025.16-52-52_1.mov

Copy link
Copy Markdown
Collaborator

@etrepum etrepum left a comment

Choose a reason for hiding this comment

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

Seems to be a net improvement although there are still cases here where it's not very usable, particularly related to scrolling

@etrepum etrepum added this pull request to the merge queue Jul 3, 2025
Merged via the queue into facebook:main with commit af205a0 Jul 3, 2025
49 checks passed
@etrepum etrepum mentioned this pull request Jul 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. extended-tests Run extended e2e tests on a PR

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Bug: Table cell selection triggers unexpectedly on touch inputs

3 participants