Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

infiniteZoom property does not work when zooming via double-tap #1680

Open
xiaofengorz opened this issue Nov 29, 2024 · 1 comment
Open

infiniteZoom property does not work when zooming via double-tap #1680

xiaofengorz opened this issue Nov 29, 2024 · 1 comment

Comments

@xiaofengorz
Copy link

Description

infiniteZoom property does not work when zooming via double-tap. Even if you set the prop to TRUE (its default value), you can only zoom infinitely by clicking the zoom-in icon. Once you try to zoom it into a size larger than its original size by double-tap, it just resize to the original size.

Steps to reproduce

1.Set the infiniteZoom prop to TRUE;
2.Use a picture that smaller than the window;
2.Zoom in it by double-tap

JS code that you use to initialize lightGallery.

lightGallery(document.getElementById('lightgallery'), {{
download: false, 
actualSize: false,
infiniteZoom: true,
showZoomInOutIcons: true, 
exThumbImage: 'data-src', 
mousewheel: true, 
showBarsAfter: 500, 
plugins: [lgZoom, lgThumbnail, lgRotate], 
mobileSettings: {
showCloseIcon: true, controls: true, download: false
}
 });

Sample HTML markup

<div id="lightgallery">
    <a href="img/img1.jpg" data-lg-size="160-240">
        <img alt=".." src="img/thumb1.jpg" />
    </a>
    <a href="img/img2.jpg" data-lg-size="512-400">
        <img alt=".." src="img/thumb2.jpg" />
    </a>
    ...
</div>

Environment

  • Browser and version - Microsoft Edge 131.0.2903.70 64-bit
  • OS - Windows 11 64-bit
  • lightGallery version - 2.8.2
@xiaofengorz
Copy link
Author

When zooming in by pinching, it doesn't work either.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant