pixi-viewport icon indicating copy to clipboard operation
pixi-viewport copied to clipboard

IOS: Problem with pinch-zoom gesture on large image

Open pub00515 opened this issue 2 years ago • 2 comments

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!

pub00515 avatar Mar 09 '23 13:03 pub00515

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

davidfig avatar Mar 12 '23 13:03 davidfig

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.

nApTu3aHs avatar May 05 '24 15:05 nApTu3aHs