blueimp / Gallery

blueimp Gallery is a touch-enabled, responsive and customizable image & video gallery, carousel and lightbox, optimized for both mobile and desktop web browsers. It features swipe, mouse and keyboard navigation, transition effects, slideshow functionality, fullscreen support and on-demand content loading.
https://blueimp.github.io/Gallery/
Other
3.75k stars 983 forks source link

Problem when the hash in the url on the landing page changes. #276

Open smiady opened 1 year ago

smiady commented 1 year ago

Hi.

When I click on items in the menu, the hash on the url changes. Unfortunately, when the hash changes, bluegallery stops working.

This is the page where the problem occurs - http://serwer211754.lh.pl.

I tried to solve this problem using the following code: `window.location.hash = ''

carousel_fullscreen_div.addEventListener('click', () => { blueimp.Gallery(gallery, { fullscreen: true }) })`

but delete hash before start blueimp doesn't help.

Do you have any ideas to solve the problem?

gmacev commented 1 year ago

closeOnHashChange: false

smiady commented 1 year ago

It works! Thank you!