ui
ui copied to clipboard
[v6.0.5] Closing Fancybox with back button retains html.with-fancybox and body.hide-scrollbar css classes
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