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

Background scrolls behind dialog #450

Closed
2 tasks done
mjcampagna opened this issue Mar 18, 2023 · 1 comment
Closed
2 tasks done

Background scrolls behind dialog #450

mjcampagna opened this issue Mar 18, 2023 · 1 comment

Comments

@mjcampagna
Copy link

Describe the bug

The background page scrolls while modal dialogs are open.

Reproduction

Open a modal dialog. Use the trackpad to scroll the page; the background scrolls.

Additional context

Seems like the html.with-fancybox body.compensate-for-scrollbar classes are not being applied in this scenario.

You can observe this behavior on the Fancybox website; click the "Launch Dialog" button in the Examples section, then scroll the page.

Validations

  • Read the docs.
  • Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
@fancyapps
Copy link
Owner

Hi,

Thanks for reporting, it should work better now.

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

2 participants