Awesome-Image-Viewer icon indicating copy to clipboard operation
Awesome-Image-Viewer copied to clipboard

[feature request] Close image viewer on 'Esc' click and when we click out of image bounds

Open ruialmeida51 opened this issue 1 year ago • 4 comments

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!

ruialmeida51 avatar Mar 27 '23 22:03 ruialmeida51

Hi Thanks for the feedback @ruialmeida51 👌 Sure, I'm a bit busy lately, but I will add it soon...

MostafaMDZH avatar Mar 30 '23 14:03 MostafaMDZH

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! 😁

ruialmeida51 avatar Mar 30 '23 15:03 ruialmeida51

That's a good workaround. 😄 I will let you know when I have done it.

MostafaMDZH avatar Mar 31 '23 08:03 MostafaMDZH

@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.

sarojregmi200 avatar Nov 29 '23 10:11 sarojregmi200