ui icon indicating copy to clipboard operation
ui copied to clipboard

[v6.0.5] Closing Fancybox with back button retains html.with-fancybox and body.hide-scrollbar css classes

Open SamuelGaona opened this issue 3 months ago • 0 comments

Describe the bug

Trying to close Fancybox with the back button causes to not be able to scroll through the webpage, due the html.with-fancybox and body.hide-scrollbar css classes.

Any other way to closes fancybox does not create this issue, nor other browser or operating system, besides Samsung Internet Explorer and Chrome.

Reproduction

Tried to set Hash: false without success. If you press esc key, it closes the fancybox instance that should be closed with the back button, but the phone does not have access to press that key.

https://github.com/user-attachments/assets/b155abbb-20f7-4b90-bb44-143a83d0bb98

Additional context

Fancybox: 6.0.5 Chrome: 137.0.7151.115 Android: 15 Phone: SM-S711B

SamuelGaona avatar Jun 28 '25 20:06 SamuelGaona