Zoom on mobile issue
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:
- Go to https://biati-digital.github.io/glightbox/ on mobile
- Click on first image with women
- Try to zoom/pinch by touching the image.
- Didnt work
- try it by zooming/pinhcing the surrounding
- Works
Expected behavior When I pinch/zoom the image it should zoom too.
Smartphone:
- Device: Pixel4XL
- OS: Android 11
- Browser chrome
- Version latest
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
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.
Can't replicate either on One Plus Nord with Android 11 and any browser (Chrome, webview, Brave, Vivaldi, Firefox, Opera or Edge).
Can replicate the issue: try Dev console, and with shift+left mouse click you can simulate pinch on mobile view. Can't zoom images.
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.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.