0

I tried to add right scroll in div. This works in most browsers, but not properly when using iPad Safari. Does the iPad not suported this css attribute?

I prepared test html. It do not work too.

<html>
    <head>
        <style>
            .ounner {
                border: solid 1px red;
                width:300px;
                height: 500px;
                overflow:scroll ;
            }
            .inner{
                border: solid blue 1px;
                height: 700px;
                width: 400px;
            }
        </style>
    </head>
    <body>
        <div class="ounner">
            <div class="inner">
                sdsd
            </div>
        </div>
    </body>
</html>
1
  • 4
    iOS Safari doesn't display scroll-bars on elements. To show hidden content requires a two-finger drag. This is also true on large code samples here on Stackoverflow. And, frankly, an irritation (certainly on iPhone). Commented Feb 16, 2011 at 17:47

2 Answers 2

1

overflow: auto and overflow: scroll are supported on MobileSafari, but since scrollbars are not used on iOS, to scroll these areas one must use two fingers.

There is a JavaScript library called iScroll that handles touch events and implements one-finger momentum scrolling manually; perhaps that would be worth looking into.

Sign up to request clarification or add additional context in comments.

Comments

1

I have used css:

-webkit-overflow-scrolling: touch;

and scrolling works with 1 finger as well (iPad 2, iOS 5.1.1).

Hope it helps, Filip

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.