drozhzhin-n-e / ngx-pinch-zoom

Module provides for image zooming and positioning with use of gestures on a touch screen.
http://ivylab.space/pinch-zoom
MIT License
113 stars 95 forks source link

Zooming in big screens (iPad Pro Retina or similars) #76

Closed guircoelho closed 3 years ago

guircoelho commented 3 years ago

Hello everyone.

We noticed two bugs when zooming in bigger screens:

  1. When the user double tap the image, the fullImage is replaced and the X/Y position of the zoom get lost. Another portion of the image gets zoomed;
  2. Then double tapping again, the image is filled the entire screen instead of the original position.

I did a wireframe to illustrate (below). Is any config that I'm missing?

Thanks in advance!

101192225-8659cd00-3639-11eb-9497-372bc03e7e55

guircoelho commented 3 years ago

Solved by increasing its height:

height: calc(100vh - 200px);