@mantine/hooks use-scroll-lock does not prevent scrolling on iOS Safari
See original GitHub issueMantine v 3.0.4 iOS Safari 15.0.1
The use-scroll-lock
hook does not lock scrolling on iOS Safari (testing demo page https://mantine.dev/hooks/use-scroll-lock/).
Here’s an up-to-date article that goes into the specific problems and how to properly prevent scrolling in iOS Safari that may be worth referencing for a fix: https://pqina.nl/blog/how-to-prevent-scrolling-the-page-on-ios-safari/
edit: fix link to article
Issue Analytics
- State:
- Created 2 years ago
- Comments:13 (9 by maintainers)
Top Results From Across the Web
use-scroll-lock - Mantine
In some operation systems scrollbars have width. To offset that width use-scroll-lock adds padding-right equal to scrollbar width to body element when scroll...
Read more >How To Prevent Scrolling The Page On iOS Safari 15 - PQINA
When the is-locked class is assigned we use it to set the required styles so the page cannot be scrolled.
Read more >useLockBodyScroll does not prevent touch scroll #602 - GitHub
It only holds mouse scroll and has no effect on touch scroll (iOS chrome, safari)
Read more >Simple Solution to Prevent Body Scrolling on iOS
In my last article about building accessible popup overlays with Vue.js we used a simple technique to prevent scrolling in the background.
Read more >iOS 10 Safari: Prevent scrolling behind a fixed overlay and ...
If the content in the overlay is long enough so that it can be scrolled, scrolling is correctly disabled for the main page...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Sounds good, I tried something similar before but still had issues on iphone (used ip7)
It’s time to let it go. We’ve already wasted too much time on this.