pixi-viewport
pixi-viewport copied to clipboard
IOS: Problem with pinch-zoom gesture on large image
Hi,
I have a large image (approx 10k*10k) and I have two issues zooming:
- zoom seems to be limited to a certain value. I tried settings a max scale of 17 using the clamp method but all I'm getting is approx. 3-4.
- if I zoom in to this limit, I can no longer zoom out. The two finger pinch gesture is only causing a drag event. Any help would be appreciated!
if you post sample code, I can take a look. I don't know of any maximum/minimums if you're not clamping (outside of javascript's large number support).
I have the same problem both on the ios and on the android. Link to exapmple: https://m804s.csb.app/ Just open the demo on your phone and try using pinch zoom. From scale 8 the problem begins to appear, at scale 25 the pinch zoom almost stops working. I also noticed that the larger the scale, the slower you have to move your fingers for the pinch zoom to work.