-
-
Notifications
You must be signed in to change notification settings - Fork 150
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
How to prevent selection right after a right-click #101
Comments
Examples?, if not then just return |
I think the question is more related to the event.stopPropagation(). Is it possible to preventing the click from going through @simonwep ? |
@simonwep An easy way to recreate this issue (On Chrome) is to right click on a selectable area and select Inspect. Not sure how you'd get around this other than to limit the click event that triggers Selection to only left mouse clicks. Perhaps another option to add to the config, e.g. |
Here is an example of how you could do that :) |
I'm doing this:
|
@simonwep your example links lead me to 404 error pages |
Based on @LouGhys's comment in simonwep#101 - figured more people could find this useful.
Based on @LouGhys's comment in simonwep/selection#101 - figured more people could find this useful.
I would like to prevent the selection from starting immediately following a right click (also control-click on Mac). I have a UI with contextual menus, and I do not want the selection to start after closing the menu.
I assume I would do something in
beforestart
, but I'm not surer where to begin.The text was updated successfully, but these errors were encountered: