Awesome-Image-Viewer
Awesome-Image-Viewer copied to clipboard
[feature request] Close image viewer on 'Esc' click and when we click out of image bounds
Hi!
I'm using your library in my project and it works great. Thank you for the great work here 😁
Is there any chance we could have support for dismissing the gallery view when we press the 'ESC' key or when we click on the lightbox, outside of the image bounds?
Thanks!
Hi Thanks for the feedback @ruialmeida51 👌 Sure, I'm a bit busy lately, but I will add it soon...
I'll keep an eye out for the issue. Take your time!
For now I'm listening to the 'ESC' key in the page and dismissing the image viewer as a workaround. Can't do much about clicking outside of the image to dismiss tho, I'm still too fresh in front-end development to be able to properly change the lib's source code haha 😄
Thanks for getting back to me! 😁
That's a good workaround. 😄 I will let you know when I have done it.
@MostafaMDZH, thanks for this project. It helps a lot to be honest.
I stumbled upon this project today and was thinking about the same problem that this issue has raised, And totally understand you may not be free to update this personal project of yours. Do you want a helping hand I would love to look at it and address the feature requests in this issue. Those are the same features that I wish this project had.