Skip to content

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

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

etrepum merged 1 commit into
facebook: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

vercel Bot commented Jun 27, 2025 •

Copy link
Copy Markdown

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

etrepum commented Jul 2, 2025

Copy link
Copy Markdown
Collaborator

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

@etrepum etrepum left a comment

Copy link
Copy Markdown
Collaborator

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

This branch was successfully deployed

2 active (1 outdated) deployments
Preview – lexical — c9098b5d Deployed Jun 27, 2025 by vercel[bot]
Preview – lexical-playground — de49bcda Deployed Jun 27, 2025 by vercel[bot]
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