istvan-ujjmeszaros / bootstrap-autohidingnavbar

An extension for Bootstrap's fixed navbar which hides the navbar while the page is scrolling downwards and shows it the other way.
Other
321 stars 106 forks source link

mobile support ? #22

Open ghost opened 9 years ago

ghost commented 9 years ago

Just loaded the test website in a S4 and the demo does not work. Reloaded the demo page a couple of times and cleared the cache. Is this for desktop only?

antoniotajuelo commented 8 years ago

Nope, it should work in mobile exactly in the same way as desktop.

ghost commented 8 years ago

@monolux Which version android is on the S4 and also the browser type/version as well (Ie. kitkat v4.4.4 & "Internet" v2.1.xxx ) @antoniotajuelo I found it working on my note 2 & 3 with kitkat 4.4.4 with Chrome 48.0.254

istvan-ujjmeszaros commented 8 years ago

This is an issue with some mobile browsers. More info here: https://www.tjvantoll.com/2012/08/19/onscroll-event-issues-on-mobile-browsers/

istvan-ujjmeszaros commented 8 years ago

Actually that may work, I will give it a try: http://stackoverflow.com/a/9787064/504270

ghost commented 8 years ago

Android version 4.4.2 and mobile Chrome version 48.0.2564.95 ; GT-I9505 Build/KOT49H

And confirming: Just tested this again right now on the demo page. Navbar appears fixed on top and does neither hide or show, i.e. when I am at bottom of page and scroll up.