glightbox icon indicating copy to clipboard operation
glightbox copied to clipboard

Zoom on mobile issue

Open X-Tender opened this issue 2 years ago • 5 comments

Describe the bug I have experienced on mobile the problem that the pinch zoom only works when you didnt touch the image. You have to touch the black surrounding and then zoom in. after that you can touch the image to pinch/zoom.

Are you able to reproduce the bug in the demo site Yes

To Reproduce Steps to reproduce the behavior:

  1. Go to https://biati-digital.github.io/glightbox/ on mobile
  2. Click on first image with women
  3. Try to zoom/pinch by touching the image.
  4. Didnt work
  5. try it by zooming/pinhcing the surrounding
  6. Works

Expected behavior When I pinch/zoom the image it should zoom too.

Smartphone:

  • Device: Pixel4XL
  • OS: Android 11
  • Browser chrome
  • Version latest

X-Tender avatar Feb 07 '22 09:02 X-Tender

I experienced the same problem on my phone (Galaxy S8+). Once you pinch to zoom outside of the image, it appears to enable pinch to zoom on the image.

Smartphone:

Device: Galaxy S8+
OS: Android 9
Browser: Chrome
Version: Latest

end2endi avatar Feb 27 '22 10:02 end2endi

i'm not able to replicate this error on an iPhone 11 with Safari, Edge or Chrome, seems the problem is specific to Android devices. I do not own an Android device so any help is appreciated.

biati-digital avatar Mar 08 '22 21:03 biati-digital

Can't replicate either on One Plus Nord with Android 11 and any browser (Chrome, webview, Brave, Vivaldi, Firefox, Opera or Edge).

alicroche avatar Apr 11 '22 14:04 alicroche

Can replicate the issue: try Dev console, and with shift+left mouse click you can simulate pinch on mobile view. Can't zoom images.

wzol avatar Jun 19 '22 05:06 wzol

Pinch zoom is extremely fussy and makes it unusable. As @X-Tender mentioned, it sometimes (but not always) works when the zoom motion is performed on the black surrounding. Sometimes the zoom doesnt happen and the upon swiping, the next or previous image shows zoomed.

zehawki avatar Jul 27 '22 20:07 zehawki

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.

stale[bot] avatar Jan 26 '23 06:01 stale[bot]