Hiding app bar mobile when scrolling

Hello everyone,

I'm currently working on implementing a feature for a mobile application where the top and bottom dock should hide when scrolling. I have achieved the hiding functionality for the docks.

However, I'm currently facing a challenge in creating a trigger moment to hide the docks when scrolling within the app. While there is a mouse wheel scroll event available, it does not apply to touch-based scrolling. I was wondering if anyone knows of an event or a method to capture this scrolling movement using touch.

Thanks in advance!

Howdy,

I think you'll want to use the onTouchMove event to detect when a touch point has moved along the surface to trigger your script to hide the docks.