Sachin Neravath

Results 77 comments of Sachin Neravath

Hey @EnzoRimapa, Please provide an isolated codepen demo or share the HTML and JavaScript code that you use to initialize lightGallery

Hey @mas-iota, Yes, it is already availbale. By default, lightGallery resizes the thumbnails and displays instead of the large image until the large image is fully loaded. Note: this works...

Which version of iPad are you using? You can override the function to detect mobile devices by passing a custom function via `isMobile` option Docs - https://www.lightgalleryjs.com/docs/settings/#isMobile

Could you please run the following function on your iPad and share the results? ```js function isMobile() { return /iPhone|iPad|iPod|Android/i.test(navigator.userAgent); }, ``` And instead of using the event listeners, you...

Hey @acwolff, For all the transition effects other than, `lg-fade` and `lg-slide`, you need to include `https://github.com/sachinchoolur/lightGallery/blob/master/dist/css/lg-transitions.css` in your document. Somehow it got removed from the docs. I'll update it...

Hey @leevigraham, Thank you for reporting this issue. Yes, this needs to be improved. For now, please cast the selector as `HTMLCollection[]`. ```ts import lightGallery from "lightgallery"; lightgallery(document.getElementById('gallery'), { selector:...

```ts import lightGallery from "lightgallery"; lightgallery(document.getElementById('gallery'), { selector: (document.querSelectorAll('.gallery-item') as unknown) as HTMLCollection[] }); ``` Consider this as a temporary fix, once you upgrade to the newer version, you can...

Hey @neerajnaswa, Is it possible to provide a stackblitz demo?

Thank you for reporting the issue. I'll look into this and get back to you

Hey @simplebunsen, I've tried multiple times to reproduce the issue. The only way I was able to reproduce the issue is initializing the same gallery multiple times. Could you please...