Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

overflow:auto not working in touch devices(iOS)

I have implemented a website using twitter bootstrap. At the top of the site I have used a nav bar, and inside that used a dropdown menu. The dropdown menu is made up of < ul > and < li > tags. I am showing a list of members inside that dropdwon menu. When the list of member grows the dropdown menu grows horizontally, for which I have added a overflow: auto to the dropdown-menu class. Now its showing an vertical scroll bar, and working fine in browser.

But the same thing is not working in iPad and other iOs devices. I have googled it and found -webkit-overflow-scrolling: touch should work. But it is not working for me. Lot of other solutions are also present, but unfortunately not working for me.

Is there any better solution available. May be anything we can do using css itself.

like image 417
sandeep Avatar asked Aug 26 '13 07:08

sandeep


People also ask

Does overflow-y auto work on iPad?

I noticed that using overflow-y: auto;(from Chris’s example) also works. Tested in the native browser and Chrome of a Samsung tablet with Android 4.0.4 and also on iPad with iOS 6, Safari + Chrome. Reply Balbir Permalink to comment#January 30, 2014 overflow-y: auto; is working on all browser for me but not working on iPad.

Does iOS Safari ignore overflow hidden when applied to body?

I found on stack overflow a post that specifically says that iOS safari ignores overflow hidden when applied to body or html. They seem to be able to have worked around this by putting everything inside a wrapper div. Might give it a shot.

Why is my iPhone touch screen not working after software update?

It is entirely possible that a simple restart might not work if the issue really is more internal. However, before you jump to the conclusion that the issue lies in the software update you should first check your iPhone 3D Touch Sensitivity and try to fix iPhone touch screen not working issue.

How to fix iPhone touch screen not working without data loss?

Dr.Fone - System Repair is a great tool rolled out by Wondershare, which Forbes has covered (twice) and rewarded by Deloitte (again twice) for excellence in technology. It can fix most iOS system issues, and it can do so without suffering any data loss. Fix iPhone touch screen not working issue without data loss!


1 Answers

Add the css property in to your div tag -webkit-overflow-scrolling: touch

like image 79
Abhishek Jaiswal Avatar answered Oct 24 '22 09:10

Abhishek Jaiswal