react-images icon indicating copy to clipboard operation
react-images copied to clipboard

How to enable pinch to zoom?

Open mhedengren opened this issue 5 years ago • 8 comments

I really like this package and if there somehow was a way to pinch to zoom on mobile devices it would be perfect.

I saw an issue on this from 2017 and I was wondering if anyone ever came up with a solution? Or if there are any workarounds for how to make it work.

mhedengren avatar Dec 17 '19 18:12 mhedengren

As far as I'm aware there isn't any set way to do this yet.

When I can, I'll look into how this can be done.

davwheat avatar Dec 18 '19 17:12 davwheat

As far as I'm aware there isn't any set way to do this yet.

When I can, I'll look into how this can be done.

That would be greatly appreciated!

mhedengren avatar Jan 03 '20 11:01 mhedengren

Hey, I have integrated React images (existing) with hammerjs. Will create a demo integrating both and post link here. Sorry, bit busy these days. Will try to get it ASAP.

patelrr avatar Jan 21 '20 14:01 patelrr

Sample code - https://codesandbox.io/s/dazzling-goldberg-0u22t

Sample Output - https://0u22t.csb.app/

Plz ignore code style, didn't got time to follow coding style.

patelrr avatar Jan 21 '20 15:01 patelrr

Thanks for the example @patelrr.

If you'd like, you can submit a PR to add this functionality to the component, or I can add it when I have time.

davwheat avatar Jan 21 '20 15:01 davwheat

@davwheat would love to submit PR. But a bit busy these days. I will need some time to do so.

patelrr avatar Jan 22 '20 10:01 patelrr

Thanks for the example @patelrr.

If you'd like, you can submit a PR to add this functionality to the component, or I can add it when I have time.

If this functionality is implemented, it will be very cool!

jackson-dikey avatar Apr 22 '20 16:04 jackson-dikey

That's cool to use this feature.

anhtran avatar Jun 09 '20 17:06 anhtran