Krishna9960
Krishna9960

Reputation: 529

Scrolling with single finger gesture for <object> element- IPAD not working

I have an weird requirement. I want to scroll the embedded pdf within <object> or <embed> element with one finger. As of now I am able to scroll the embedded content with two fingers.

Tried following elements
1. <object>
2. <embed>

Read many articles and got to know that two fingers scroll gesture is standard practice by Apple. Still want to try my luck.

Any help would be appreciated.

Thanks in advance.

Upvotes: 0

Views: 1738

Answers (2)

artegen
artegen

Reputation: 161

overflow: auto; -webkit-overflow-scrolling: touch; is a workaround for <iframe> elements. It doesn't work for the <object> elements, which is a more natural way to embed a pdf.

Upvotes: 1

Lars Beck
Lars Beck

Reputation: 3584

Although I’ve no explanation why Mobile Safari explicitly needs this, adding overflow: auto; -webkit-overflow-scrolling: touch; to the container makes the PDF scrollable.

Upvotes: 2

Related Questions