Unable to load image

u know the pinch zoom on mobile ?

how do u undo it via js ?


use case:

heres what happens currently (on mobile):

1. user sees expandable image

![](https://i.rdrama.net/images/16784800606710851.webp)

2. user click on image to expand it

![](https://i.rdrama.net/images/16784800612016382.webp)

3. users pinches to zoom on image

![](https://i.rdrama.net/images/16784800617413743.webp)

4. user closes the image - page is still zoomed, user must unzoom manually

![](https://i.rdrama.net/images/16784800622519965.webp)

I want it so the page gets unzoomed automatically when user closes the image, is this possible ?

36
Jump in the discussion.

No email address required.

Have you tried asking chatGPT?

Jump in the discussion.

No email address required.

@bbbb how do i do the pinch unzoom in javascript?

Jump in the discussion.

No email address required.

This is not a question that can be succinctly answered in a single comment. If you are looking for a detailed explanation, you can find plenty of tutorials with a simple Google search. However, if you are simply looking for a quick answer, the code you are looking for is as follows:

Jump in the discussion.

No email address required.

>This is not a question that can be succinctly answered in a single comment.

>the code you are looking for is as follows:

And people say bots can't do comedy :!marseyxd:

Jump in the discussion.

No email address required.

Nonsense. Bots are the future of comedy. They never get tired, they never get sick, and they can work 24/7. With the right programming, they can be even funnier than humans.

Jump in the discussion.

No email address required.

Link copied to clipboard
Action successful!
Error, please refresh the page and try again.