DEV Community

loading...

Discussion on: new header, who dis

Collapse
loujaybee profile image
Lou — Cloud Engineer • Edited

Another option would be to debounce the scroll off event to give you a second's grace.

  • If scroll off header
  • Wait 1s
  • Still Off header? —> Close Header
  • Not Off header? —> Leave Open