Safari bug:当输入导致滚动时,translate3d 滚动会偏移

发布于 2024-12-14 03:58:35 字数 397 浏览 3 评论 0原文

Mac 上的 Safari 5.1.1 中存在一个似乎难以解决的错误。 (Mac 上的 Firefox 也有展示。)

使用 iScroll 设置滚动 DIV,由 INPUTTEXTAREA 引起的任何滚动都会抵消通过translate3d矩阵量自动滚动。因此,例如,您可能无法再滚动回到顶部!

由于它是不正确的 translate3d 矩阵,所以我找不到任何解决此错误的方法。从元素获得的所有值似乎都是正确的,除了滚动内容的偏移不正确。

另请注意:我确信这不是 iScroll 错误。

欢迎任何想法!如果在其他浏览器中测试过,请发表评论。

There is a bug in Safari 5.1.1 on Mac which seems intractable. (Also, exhibited by Firefox on Mac.)

Using iScroll to set up a scrolling DIV, any scrolling caused by an INPUT or TEXTAREA offsets the translate3d matrix by the amount of automatic scrolling. Thus, for example, you may no longer be able to scroll back to the top!

Since it is the translate3d matrix which is incorrect, I cannot find any way of working around this bug. All values obtained from the elements appear to be correct, except that the scrolled content is incorrectly offset.

Note also: I am sure this is not an iScroll bug.

Any ideas are welcome! Please comment if tested in other browsers.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文