javascript - how to stop a fixed input at the top of a page from making the ipad browser scroll up on focus -


i have responsive site top navigation fixed scroll down age header stay @ top edge of browser. in header search input. on iphones , ipads, when user taps in field page scroll top.

i want stop because user decides not search , taps out of search field, should bee left off versus @ top of page.

i have found articles using overflows on scrollable divs, not case plain page. have anchor book marks allows user go sections of page, , lots of home page content. want user able drag way down page, or click on anchor. have ability click search , not have page zip top.

how go javascript have tried preventdefault on focus of field no luck.

any appreciated.

thanks

jeff


Comments

Popular posts from this blog

node.js - How to mock a third-party api calls in the backend -

node.js - Why do I get "SOCKS connection failed. Connection not allowed by ruleset" for some .onion sites? -

matlab - 0-by-1 sym - What do I need to change in order to get proper symbolic results? -