istvan-ujjmeszaros/bootstrap-autohidingnavbar

Add delay before hide

MichMich opened this issue · 4 comments

It would be great if you can add an option to set a delay before the bar hides.

Agree.

It would be a nice option to be able to set a minimum scroll length in pixels before the menu hides.

@MichMich what do you think about the pixels? Is that good for you or you would prefer a timer?

I would prefer a timer. But both would work. :)

The reason I suggested pixels instead of a timer is that we use auto hide on a header menu that is set to XX pixels. In addition to this there is a padding-top on the body-tag to ensure that the top menu will not cover any content when loading a page.

In the current version we experience problems on mobile devices, because the menu hides too early. I.e. the menu hides when the user scrolled only XX-20px, breaking the layout as is leaves a "blank space".

An option to prevent the menu from hiding before the user has scrolled at least XX pixels, would solve this issue.