3 ms·
Still waiting for Safari to report scroll events correctly. Still waiting...
by untog 13y ago
Still waiting for Safari to report scroll events correctly. Still waiting...
- mmariani 13y agoDon't wait. File a bug report. http://bugreporter.apple.com http://bugreporter.apple.com http://www.openradar.me http://www.openradar.me
- jamesmoss 13y agoIf you're talking about scroll events only firing when you release your finger from the screen I can't see this being changed any time soon. Apple want to keep scrolling responsive at all costs and definitely wouldn't let those pesky JS developers make Mobile Safari appear slow and laggy.
- untog 13y agoThat's what I'm talking about, yes. And I really don't get the logic of it- it'll fire scroll events while the user's finger is down, but then immediately stop as soon as they raise their finger - so I can't see how responsiveness would lead you do that.
- evadne 13y agoProbably not going to happen as interaction happens on the main thread with the run loop in event tracking mode, and the JavaScript functions might be queued for a different mode on the main thread or on another thread. (I develop for iOS but am not that familiar with Nitro or WebKit internals.) The WebKit folks were playing with position: sticky [1] a while earlier. This might be pretty close to what you need. There’s another solution I’ve used in production — for touch UI, do your own gesture handling and do your own scrolling. This can be done thru Zynga’s Scroller [2] which works very nicely on an iPad 3 — the device I last tested an app with it on. Summary: in Cocoa, common things are easily and other things are doable. If something is not easy in Cocoa, it might be difficult to get right anyway. [1] http://updates.html5rocks.com/2012/08/Stick-your-landings-position-sticky-lands-in-WebKit http://updates.html5rocks.com/2012/08/Stick-your-landings-po... [2] https://github.com/zynga/scroller https://github.com/zynga/scroller