I have a weird issue that bugs me. I've setup a project with html/css that enables horizontal scrolling. This works fine for PC/Android but doesn't work on iOS unless I drag at the edge of the screen (which takes me to the previous or next page visited) and drag back again. When doing this I'm allowed to scroll perfectly until the scroll stops. If I want to scroll again I have to repeat the drag gesture. It's like the scrolling area won't get focus or something. Snippets of the attempt (HTML):
<div class="scrollable">
<div class="scrollable-content">
<div id="tournaments-horizontal">
<div class="tournament-h-container"></div>
<div class="tournament-h-container"></div>
<div class="tournament-h-container"></div>
<div class="tournament-h-container"></div>
<div class="tournament-h-container"></div>
<div class="tournament-h-container"></div>
<div class="tournament-h-container"></div>
<div class="tournament-h-container"></div>
<div class="tournament-h-container"></div>
</div>
</div>
</div>
CSS: http://pastebin.com/aUsQQUjm
I would really appreciate if someone knew something about this. Again, to repeat the "solution" for iOS:
(Screwed up the code tag so I decided to link to a pastebin instead).
Thanks in advance!
Add this to your CSS:
.scrolling-element {
overflow-x: scroll; /* Must be 'scroll' not 'auto' */
-webkit-overflow-scrolling: touch;
}
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With