Receive continuous scroll events in Chrome iOS

On Safari Mobile on iOS <8, all Javascript was paused while the user was scrolling. Starting with the release of iOS 8, this is no longer the case as you can read here:

http://developer.telerik.com/featured/scroll-event-change-ios-8-big-deal/

This is great news. Running Javascript while scrolling (if done correctly) opens up the possibility for many usability improvements (like sticky menus) and effects (like parallax).

Is there a way to get the same thing on Chrome Mobile on iOS?

The same website says that the first mobile browser that supported live scroll events was Chrome on Android 4.0. If so, why is it still disabled in the latest Chrome on iOS?

+5
source share
1 answer

This could be the answer:

https://code.google.com/p/chromium/issues/detail?id=423444

If the new Javascript processing is tied to the new Nitro Javascript engine used in Safari Mobile (and WKWebView ), then we will have continuous scroll events in Chrome Mobile as soon as they switch to using WKWebView instead of UIWebView .

EDIT: Starting with version 48.0.2564.87 , Chrome uses WKWebView on iOS, and continuous scroll events work!

+2
source

Source: https://habr.com/ru/post/1208525/


All Articles