setTimeout、setInterval、onscroll、requestAnimationFrame 都试过了……
均会在惯性滚动的时候被暂停 _(:з」∠)_
真的没有好的解决办法么 0 0?
以及,scrolling end 是不是也不能监听到?

setTimeout、setInterval、onscroll、requestAnimationFrame 都试过了……
均会在惯性滚动的时候被暂停 _(:з」∠)_
真的没有好的解决办法么 0 0?
以及,scrolling end 是不是也不能监听到?
1 bumz Dec 25, 2014 有一法,那就是禁用掉 iOS 自的,自己模仿一。 https://bumfo.github.io/overflow.html 外的好是可以毛玻璃效果~ https://workspace.v2ex.com/file/c64143a0-8ba7-11e4-9d18-42010af0ecaa/2849178970-5463896a48365.jpeg |
2 bumz Dec 25, 2014 等等,了一下,你信 scrolling 的候是法行 js,不是法更新 scroll layer dom? 我,requestAnimationFrame,js 一直好好地行呢 (iOS 8 Safari),而且更新 scroll layer 是 fixed layer 都(iOS7 好像只能更新 fixed layer)。 |
3 shuding OP @bumz 谢谢!你的 demo 实在太棒了! 我的测试是 iOS 7 > <,scrolling 确实会暂停。 搜到一些资料,(iOS 7 里边)确实是 Apple 暂停掉了。 看来是 iOS 8 有改变: http://developer.telerik.com/featured/scroll-event-change-ios-8-big-deal/ |
4 yyfearth Dec 25, 2014 说是js会执行 但是不paint |
5 hkongm Dec 25, 2014 IOS8的SAFARI才有了真正的scroll事件。 |
8 iyangyuan Dec 25, 2014 好像滚动的时候,css animation也会停掉。。。 |
10 bumz May 11, 2015 via iPad @whatisnew iOS 8 一切正常,iOS 7 除了自外,不可能有比完美的解方案。 不 fixed 和 sticky 的元素在可以被 js 更新,然 css 被停,但是也可以用 js 操。。。 demo: https://bumfo.github.io/anim.html iOS 7 下,保持手指移, 然而如果手指有移,目前也有什法能了。 |