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

Add documentation about locking scroll #153

Merged
merged 1 commit into from
Feb 27, 2021
Merged

Add documentation about locking scroll #153

merged 1 commit into from
Feb 27, 2021

Conversation

KittyGiraudel
Copy link
Owner

No description provided.

@KittyGiraudel KittyGiraudel merged commit 130d116 into main Feb 27, 2021
@KittyGiraudel KittyGiraudel deleted the scroll-lock branch February 27, 2021 19:02
@chalkygames123
Copy link
Contributor

chalkygames123 commented Mar 3, 2021

FYI, there is a popular library for the same purpose: https://github.com/willmcpo/body-scroll-lock

Isn't it worth mentioning though it is a third-party library?

The most basic usage is just calling disableBodyScroll() and enableBodyScroll() on target element.

EDIT: Of course, please ignore this suggestion if you're not interested.

@KittyGiraudel
Copy link
Owner Author

@chalkygames123 I think we could totally mention it! Although the lib is 1Kb, which is basically as big as the entire of a11y-dialog. But I assume it’s a little more elegant than the solution I mention in the docs, so probably worth suggesting it as well. :)

@chalkygames123
Copy link
Contributor

Glad to hear that 👍 I'm looking forward to the update.

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

Successfully merging this pull request may close these issues.

2 participants