-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
Refactor table resizer rendering logic #5957
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
@@ -102,7 +83,7 @@ function TableCellResizer({editor}: {editor: LexicalEditor}): JSX.Element { | |||
}); | |||
return; | |||
} | |||
|
|||
updateIsMouseDown(isMouseDownOnEvent(event)); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is a safety measure in case mouseup
is not registered by the browser. I'm not sure if this can ever happen and I'll be happy to hear a second opinion, if this check is required
@AlexanderReznik, in the preview here, I'm still getting the selection stuck |
This is not getting fixed in this pr, but I'll try to fix it later |
Ah, misunderstood what this was fixing. My fault. All good now. Thanks, Alex! |
Disabling table resizer when mouse button is pressed, instead of when the selection is of type
TableSelection
.This makes ui slightly better in some cases:
Cursor doesn't change when starting the table selection
Cursor doesn't change when during range selection the cursor is over the table