-
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
WebLinks plugin don't follow link on selection #1958
WebLinks plugin don't follow link on selection #1958
Conversation
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.
Actually after further testing and thinking on this I don't think we can go this direction as then people can't click links if they have any selection. What we we add a mousedown
listener in MouseZoneManager
which measures the length of the selection, and verify it hasn't checked in MouseZoneManager._onClick
instead?
That seems like a better approach to this problem.. I'll try to have a POC during the week! 😄 |
After some testing, the recommended approach seems to be working! Awaiting review 😃 |
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 not the correct solution, but it's something to get the ball rolling...
Feedback on what's the best approach is welcome, right now it is in a working state, but I believe we should be smarter about this... I have 2 questions regarding how to proceed:
Linkifier
?Fixes #1947