The requirement is to hide the scrolling display. The requirement is: the menu is hidden when scrolling, and the menu is displayed when scrolling stops. But I don’t know how to monitor the scroll end event. Please solve my doubts
Consider using touch to simulate scroll, and then use touchend. If you must use scroll, then do delay processing in the callback of scroll, take jQuery as an example.
Put the end handler in the scroll event for continuous delay processing. It will be triggered after the scroll event stops.
Consider using
touch
to simulatescroll
, and then usetouchend
.If you must use
scroll
, then do delay processing in the callback ofscroll
, takejQuery
as an example.