Open jordie23 opened 2 years ago
The author himself made the last commit a year ago. It more likely to be abandoned. The good news is we can fork this and do necessary updates by our self.
There's also a bug on ios with a fix that hasn't been merged. So I conclude yes unfortunately
@willmcpo @jvitela Hi! Do you have any plans for this project? If no - maybe you should create a team to collaborate on this? I'm sure there are people interested in this. Yes, technically we can fork to own repo, but if there will be no support for this project from the dev team, it's better to transfer this repo to interested people
Hi @Kreeg, I am not a maintainer of this library and I am no longer working with it. @willmcpo doesn't seem active on Github since 2021.
Could anybody recommend a decent alternative? I've browsed a few, but was unsure there is a bulletproof one - especially with all iOS concerns.
@kosmeln It's coming to CSS in the near future: https://developer.mozilla.org/en-US/docs/Web/CSS/overscroll-behavior
@fjeldsoe , thanks a lot!
@kosmeln This seems to work well and address all iOS concerns as well: https://github.com/tuax/tua-body-scroll-lock
@kosmeln It's coming to CSS in the near future: https://developer.mozilla.org/en-US/docs/Web/CSS/overscroll-behavior
thanks a lot ! it works well.
@kosmeln It's coming to CSS in the near future: https://developer.mozilla.org/en-US/docs/Web/CSS/overscroll-behavior
It's great but many iOS users still uses old iOS/Safari
Can someone recommend alternative library that works with older and newer iOS Safari?
They stopped maintenance. I had to work it out myself, using the same approach, with a new version of typeScript. And fix the original problem, available for everyone to use.
npm i body-scroll-lock-upgrade
@krutoo I ended up using tua-body-scroll-lock
, it's inspired by body-scroll-lock
and works as intended. I'd strongly discourage anyone from using body-scroll-lock
any further.
@KilianSSL Can you link the npm package? Can't seem to find it
I've fixed the name, sorry for that...
tua-body-scroll-lock was updated 2 years ago. It seems to be abandoned too
anyone find a good alternative?
Found these:
Does anyone have experience or can recommend something?
@simonmaass i tried https://github.com/rick-liruixin/body-scroll-lock-upgrade and it seems to work well for me
On July 2024 overscroll-behavior
has 95% usage
https://caniuse.com/css-overscroll-behavior
I think it's time to adopt that and abandon all these junky JS hacks.
Here's a good reference https://ishadeed.com/article/prevent-scroll-chaining-overscroll-behavior/
On July 2024
overscroll-behavior
has 95% usage https://caniuse.com/css-overscroll-behavior I think it's time to adopt that and abandon all these junky JS hacks.Here's a good reference https://ishadeed.com/article/prevent-scroll-chaining-overscroll-behavior/
Seems like overscroll-behavior
is still not quite ready for production usage. The author of that article (and a great article it is too!), casually dismisses one of the major drawbacks:
An interesting thing to keep in mind though is that when the navigation is short (and thus isn’t scrollable), and a user tried to scroll for no reason, the body will scroll, even if overscroll-behavior-y: contain is set. ... Unfortunately, I’m not aware of a fix for that other than the “hacks” introduced at the beginning of the article.
It's pretty critical to be able to lock the body scroll when a modal/dialog is in the top layer, regardless of how much content is inside. I'm mostly using Tua Body Scroll Lock at the moment, which is doing the job well, but would be great to abandon it . There's a good thread about all of this at WhatWG here, along with some interesting alternative approaches: https://github.com/whatwg/html/issues/7732 ... in particular this sounds like an interesting idea (haven't tried it myself yet though): https://github.com/whatwg/html/issues/7732#issuecomment-2154195226
No updates since 2021, many open issues. Anyone know if there's a fork or another maintained package?