-
Notifications
You must be signed in to change notification settings - Fork 330
Open
Description
Hi, thanks for the wonderful project. I'm developing a website that has a sidebar. In the mobile platform, I want the sidebar to be scrollable but the background does not. By using this package, the target is achieved in Android etc, but not in IOS.
<!-- Header / Sidebar -->
<header>...</header>
<!-- Page -->
<div id="page">...</div>
...
<script>
var sidebar_state = false;
function changeSidebar() {
if (sidebar_state === false) {
bodyScrollLock.disableBodyScroll(document.getElementById("page"));
sidebar_state = true;
} else {
bodyScrollLock.enableBodyScroll(document.getElementById("page"));
sidebar_state = false;
}
}
</script>
The sidebar and page is at the same level, it works well in desktop for testing and Android, but not in IOS (iphone and ipad, work in mac). Here is the online webpage https://opendrivelab.com/challenge2025/.
Metadata
Metadata
Assignees
Labels
No labels