Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[lexical-table] Bug Fix: Click and drag table selection in Firefox #7283

Merged
merged 1 commit into from
Mar 3, 2025

Conversation

etrepum
Copy link
Collaborator

@etrepum etrepum commented Mar 3, 2025

Description

When clicking and dragging from a table cell in Firefox it seems that the pointer gets captured and the target never leaves the initial location. This refactors the LexicalTableSelectionHelpers mousemove handler to always use the event coordinates rather than the event target in Firefox.

Closes #7245

Test plan

Before

Clicking and dragging to create a table selection stopped updating very quickly, see #7245

After

Can click and drag to create a table selection in Firefox

Copy link

vercel bot commented Mar 3, 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 Mar 3, 2025 8:22pm
lexical-playground ✅ Ready (Inspect) Visit Preview 💬 Add feedback Mar 3, 2025 8:22pm

@facebook-github-bot facebook-github-bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Mar 3, 2025
@etrepum etrepum added extended-tests Run extended e2e tests on a PR and removed CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. labels Mar 3, 2025
@etrepum etrepum marked this pull request as ready for review March 3, 2025 21:20
@etrepum etrepum added this pull request to the merge queue Mar 3, 2025
Merged via the queue into facebook:main with commit 4a032bd Mar 3, 2025
43 checks passed
@etrepum etrepum mentioned this pull request Mar 4, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
extended-tests Run extended e2e tests on a PR
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Bug: Firefox selection in tables is broken
3 participants