lenis icon indicating copy to clipboard operation
lenis copied to clipboard

Address bar not closing automatically on scroll in mobile browsers when using Lenis

Open norouzy opened this issue 1 year ago • 4 comments

When integrating Lenis into my web application, I noticed that the Address bar in the mobile browser does not close automatically when scrolling down or up. Instead, it remains open all the time.

The Address bar should close automatically when scrolling down and open when scrolling up, providing a cleaner browsing experience for mobile users.

norouzy avatar Feb 27 '24 13:02 norouzy

you mean using syncTouch:true ? This is currently impossible

clementroche avatar Feb 27 '24 13:02 clementroche

yes as I mentioned, this is currently not possible due to browsers limitations, only native events can trigger these actions ( the ones with isTrusted:true ). It's for security reasons I guess. That's the same reason why you cannot hide and show this bar programmaticaly.

clementroche avatar Feb 28 '24 11:02 clementroche