用单指手势滚动< object>元素 - IPAD不起作用 [英] Scrolling with single finger gesture for <object> element- IPAD not working

查看:136
本文介绍了用单指手势滚动< object>元素 - IPAD不起作用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个奇怪的要求。我想在< object>中滚动嵌入式pdf或者用一根手指< embed> 元素。截至目前,我可以用两根手指滚动嵌入的内容。

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>

阅读很多文章并了解两个手指滚动手势是Apple的标准做法。还是想试试我的运气。

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.

提前致谢。

推荐答案

虽然我没有解释为什么Mobile Safari明确需要这个,但添加 overflow:auto; -webkit-overflow-scrolling:touch; 到容器使PDF可滚动。

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.

这篇关于用单指手势滚动&lt; object&gt;元素 - IPAD不起作用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆