developerdizzle / react-virtual-list

Super simple virtualized list React component
http://developerdizzle.github.io/react-virtual-list/
MIT License
617 stars 71 forks source link

Support cordova/phonegap #67

Closed studentIvan closed 6 years ago

studentIvan commented 6 years ago

Scroll event does fire in the cordova only on the scroll process stopped. Here is the article about this stuff https://developer.telerik.com/featured/scroll-event-change-ios-8-big-deal/

Does it possible to add the support for cordova using some other stuff/options? (maybe not to use the scroll event for cordova, maybe even setInterval instead - just to make it working after all)

studentIvan commented 6 years ago

While testing I checked that getVisibleItemBounds function returns incorrect data before the scroll will be stopped. Seems the element.offsetTop does not update.

developerdizzle commented 6 years ago

Hi @studentIvan ! Unfortunately I know nothing about Cordova/PhoneGap, but if you're able to submit a PR I will happily review it.