Safari bug:当输入导致滚动时,translate3d 滚动会偏移
Mac 上的 Safari 5.1.1 中存在一个似乎难以解决的错误。 (Mac 上的 Firefox 也有展示。)
使用 iScroll 设置滚动 DIV,由 INPUT 或 TEXTAREA 引起的任何滚动都会抵消通过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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论