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

V7: Selecting text in context menu closes the dialog #6204

Merged
merged 3 commits into from
May 4, 2020

Conversation

stevemegson
Copy link
Contributor

Prerequisites

  • I have added steps to test this contribution in the description below

If there's an existing issue for this PR then this fixes #4934, #6023

Description

V7 version of PR #6203.

Additionally, stops swipe events triggering from mouse events. This can also trigger unexpected dialog closes, and can make it impossible to select text when mousemove events are intercepted.

Testing:

@nul800sebastiaan
Copy link
Member

Brilliant @stevemegson! This is going to fix sooo many annoyances. The one thing it unfortunately doesn't seem to fix for me is when you drag outside of a dialog and release the mouse button, then it still closes the dialog. But all the other text selection events in many areas are now behaving properly. Great stuff!

@marcemarc
Copy link
Contributor

This is absolutely the bain of my life... thanks @stevemegson

@nul800sebastiaan
Copy link
Member

Note: I had to revert this commit: 08480d6

It would prevent the dialogs from opening from the RTE, so the embed and insert media buttons would only sort-of work if you handily double clicked them.

@stevemegson stevemegson deleted the v7/temp-4934 branch August 26, 2020 07:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants