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

Pinch not working properly when content is fullscreen on mobile devices #523

Open
renelimonglobant opened this issue Jan 13, 2025 · 3 comments

Comments

@renelimonglobant
Copy link

Describe the bug
I'm trying to make an element that covers all the screen or almost all. I show you how is the code:

             <TransformWrapper
                initialScale={1}
                centerOnInit
                limitToBounds={true}
                disablePadding>
                <TransformComponent
                  wrapperStyle={{ overflow: 'visible' }}>
                  <img src="https://images.pexels.com/photos/674010/pexels-photo-674010.jpeg" />
                </TransformComponent>
              </TransformWrapper>

Pinch works fine when the content is small. The way I pinch is putting a finger outside of the image are and other inside of it and works fine. But when I put two fingers inside the image(or the image covers most of the screen), the pinch method is really hard to achieve, to make it work I need to place one finger completely still and move the other to pinch. Is a trick I found out but other user couldn't be able to pinch easily

This is happening on android devices, on ios I only tested on simulator so i can't say this is happening too

@DanielSpindler
Copy link

pls tag me as soon as you found out how to get around with this. Rn i think the problem appears when image is used inside of a dialog.

@renelimonglobant
Copy link
Author

I tried adding a single image on a regular html code an it keeps happening, when pinching with two fingers inside the TransformComponent area it's really hard to pinch

@DanielSpindler
Copy link

#506 is the only related issue ive found so far, but downgrading does not work for me. might work for u ?

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

2 participants