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

c++ - Delete matches in OpenCV (Keypoints and descriptors) -

java - Could not locate OpenAL library -

sorting - opencl Bitonic sort with 64 bits keys -