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

How to remove selection when user clicks on the image #1079

Open
dmx974 opened this issue Jun 11, 2023 · 0 comments
Open

How to remove selection when user clicks on the image #1079

dmx974 opened this issue Jun 11, 2023 · 0 comments

Comments

@dmx974
Copy link

dmx974 commented Jun 11, 2023

Hi, after searching for hours, I was not able to find a solution to this problem: I want the selection to disappear when I click outsite of it (like in photoshop). Seems to be a real challenge because the mousedown / mouseup event listeners has been disabled.

for instance, this is not working if I click on the area. It drives me crazy.

document.addEventListener('mousedown', onMouseDownHandler)
document.addEventListener('mouseup', onMouseUpHandler)

Anyone with a solution?

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

No branches or pull requests

1 participant