|
Replies:
4
-
Pages:
1
-
Last Post:
16 Jun 26, 18:16
Last Post By: Laza
|
Threads:
[
Previous
|
Next
]
|
|
Posts:
191
Registered:
18-Jun-2010
|
|
|
|
Zoom out with pinch problem
Posted:
28 May 26, 13:20
|
|
|
|
|
Hello,
I've had a problem for a long time: on a smartphone or tablet, if I pinch to zoom in, it works, but when I pinch to zoom out, the image shifts off the screen. You can see this in the attached video.
Given that no one has complained about this behavior, could there be a problem with my settings? Or is it a bug in Tiger?
The album used for the screenshot is here: https://phil-couton.pages-perso.free.fr/photo/priv/tests/test_minimal/index.html
Same thing occurs with Firefox, Chrome and Samsung browser (all under Android).
Edited by: phil44 on 28 May 2026, 13:46 : fix url, added browsers
|
|
|
Posts:
1,513
Registered:
6-Sep-2005
|
|
|
|
Re: Zoom out with pinch problem
Posted:
28 May 26, 14:45
in response to: phil44
|
|
|
|
Yes, I saw that, and I will try to fix this issue. Thanks for bringing it up!
|
|
|
Posts:
8,338
Registered:
31-Jan-2006
|
|
|
|
Re: Zoom out with pinch problem
Posted:
28 May 26, 15:04
in response to: phil44
|
|
|
Combining a lightbox, which "right sizes" the image, with pinch zooming is tricky, and often involves some compromises.
In Tiger, zooming in lets the image break out of the confines of the lightbox, but then zooming out is a bit "unmoored."
Other scripts take the opposite approach. Try this:
https://jefftucker.jalbum.net/skins/neptune/light/
Zooming in and out always stays within the lightbox. So, things remain controlled. But it doesn't make full use of the screen real estate.
Perhaps Laza can give you the best of both worlds. 
|
|
|
Posts:
191
Registered:
18-Jun-2010
|
|
|
|
Re: Zoom out with pinch problem
Posted:
16 Jun 26, 17:48
in response to: Laza
|
|
|
|
|
Yes, I saw that, and I will try to fix this issue. Thanks for bringing it up!
Hi Laza,
Thank you for the fix in version 8.0.7, but the problem is still there (albeit in a different form): when you pinch to zoom in, for example, in the bottom left corner and then zoom out from the top right corner, the image becomes shifted and there's no way to recenter it; panning no longer works.
That said, some friends told me they were having trouble viewing my albums on mobile. I admit that I am primarily a computer user, so I wasn't really aware of how Tiger worked on a mobile device. I looked into it further. IMHO, Tiger could be improved for mobile use, given that a large portion of users are viewing albums this way.
I've noted that:
- When an image is initially displayed in the lightbox, it fills the entire screen, which is good! But then it is possible to zoom out indefinitely, reducing the display area so much that it becomes unusable (see attached screenshot). It would be nice to lock the zoom to avoid zooming out beyond the level used for the initial display of the image.
- Double-tapping doesn't affect the zoom. Generally, in others applications, a double-tap on an entire image zooms to the tapped area, and on a zoomed image, it restores the entire image. Unfortunately, this does not work with Tiger. I thought the behavior on mobile mimicked that of double-click on a computer, but that's not the case.
This is seems to be caused by the "if (chkDoubleClick) ..." test at the beginning of the SwipeEnd function in laza.swipe.js.
- Finally, when swiping (left/right to go to the previous/next image or down to exit the lightbox), it seems to me that motion detection is very sensitive, and the action triggers as soon as the finger moves a few pixels, sometimes causing the action unintentionally. IMHO, it would be great to have a minimum movement threshold to trigger the action... For example, around 200 pixels or a fraction of the image size, such as 1/4 of the width or height, depending on the direction of the movement.
Do you think these point could be fixed?
And we agree, Jeff. The key is finding the right compromise; it's not easy.
|
|
|
Posts:
1,513
Registered:
6-Sep-2005
|
|
|
|
Re: Zoom out with pinch problem
Posted:
16 Jun 26, 18:16
in response to: phil44
|
|
|
|
1. Good idea, I will limit the min. and max. zoom.
2. The double-tap is supposed to trigger zoom in/out, but maybe something didn't work with the touch interface. I will check this.
3. The minimum move that triggers a swipe action is 20 pixels. This is probably too small. I will check this out too.
|
|
|
|
Legend
|
|
Forum admins
|
|
Helpful Answer
|
|
Correct Answer
|
|