-
-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
improve UX on bubble menu when selecting text #1493
Comments
this is somewhat related with #1313 |
I agree with this, had to work around it as well. See #1522 Happy to implement this and make this my first PR if you see the merit. @hanspagel |
Hello everyone, Just found about that bug: the cause is that when the cursor comes inside the bubble, the focus modify text selection. You can try to set the property: The best solution for me would be to always display the bubble menu, but make it interactive (with What do you think ? :) |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
it seems this is still an issue. |
I've fixed it by adding a debounce to BubbleMenuPlugin.
|
This issue is stale because it has been open 45 days with no activity. Remove stale label or comment or this will be closed in 7 days |
Thanks @sereneinserenade for the idea. I created a pull request that implements a debounce on default (250ms) which is overwriteable (or deactivateable by setting the delay to 0). |
@bdbch Glad to know my solution could be of help. |
When users selects text on multiple lines the bubble menu gets repositioned on every selection change, this is not optimal because the bubble menu will jump because the selection will overlap the menu and jump around as the selection will be toggled (focus/blur). to illustrate:
Screen.Cast.2021-05-23.at.4.16.17.PM.mp4
In my implementation I've changed the behavior on how the mouseup should be handled, this will only reposition the menu when the user text selection stops
Screen.Cast.2021-05-23.at.4.13.44.PM.mp4
Please check this behavior on medium or discord editor's bubble menu to check how it should work, also check my implementation https://www.dante-editor.dev/ 😄
the code changes of menu bubble on dante3 can be seen at https://github.com/michelson/Dante/blob/master/packages/dante3/src/popovers/bubble-menu/bubble-menu-extension/bubble-menu-plugin.ts
The text was updated successfully, but these errors were encountered: