Skip to content
View in the app

A better way to browse. Learn more.

Web Designer Forum

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

headroom.js not working properly with shadcn ui drawer on mobile (IOS)

Featured Replies

Having an issue with headroom.js and shadcn ui drawer on IOS.

Scroll down the page and then open the mobile menu,
Click anywhere on the drawer/menu, the headroom header is moving/starting to unpin and I you can't click on a menu item :(

I have tried to call freeze() on the headroom js library when mobile menu open but no luck.. (header stays open, but touch event bs still happens!)

Tried setting pointer events to none on the body no luck.. (touch event bs still happens!)

Only thing I can think of doing it setting the scroll to 0 so the user is at the top of the page as it works then, but rather not!

Any ideas guys? ❤️ Will you buy a coffee or two!!! 

Live link: https://rb.gy/k28esn

Edited by Benn_Kingy

On my phone as soon as I scroll the header bar hides. So can't even see the menu.

Not even sure why you need to use headroom.js. You can do all you need to do with a simple bit of CSS.

Create an account or sign in to comment

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.