-
-
Notifications
You must be signed in to change notification settings - Fork 127
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
Fix dblclick events with Drag.overrideCursor active (#547) #564
Conversation
Thanks for submitting your first pull request! You are awesome! 🤗 |
Ping @krassowski I don't think making the backdrop div transparent to pointer events would interfere with the performance reasons for which it was created? |
This is not immediately clear to me and will require manual benchmarking |
@krassowski Hmm! This sounds strange but I tested the Lumino datagrid example with only grid6 (the editable one) and 100000 divs and spans added to the document. Clicks on the datagrid are equally slow regardless of whether this fix is present or not. However if I do this:
All the clicks are handled instantly and also bug #547 is fixed. Opening and closing the cell editor a few times crashes the browser tab though, but that sounds like a different issue (it does that regardless of the styles I apply to |
Here's a Gist to test it: Run Uncomment |
Great to hear! We ideally want to keep the cursor override but of course we can adjust the implementation. I am away from keyboard right now so cannot test but what I am worried about is whether cursor override works when |
OK ignore that benchmark, the performance issues were because I added the test divs directly under body and the backdrop caused a layout slowdown when added as their sibling. That's an unrealistic situation in practice. Also, the |
New attempt! The prior functionality was already that the backdrop div is only correctly placed after the mouse moves with the button pressed:
So before that |
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.
Conceptually looks good.
We may still want to propagate click events through backdrop manually by creating synthetic events but this can be done in a separate PR.
The .lm-cursor-backdrop div was preventing dblclick events from reaching datagrid, breaking cell edit functionality.
Hi @krassowski and @jjrv, Would it be possible to merge this now? It would be great if I could get the edit functionality to work robustly. |
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.
Thank you @jjrv!
The
.lm-cursor-backdrop
div introduced in #502 was preventing dblclick events from reaching datagrid, breaking cell edit functionality.