roeierez / infinite-list

Infinite list in javascript that scrolls in 60fps
623 stars 45 forks source link

Doesn't work to "go to top" on mobile Safari #4

Open joacim-boive opened 9 years ago

joacim-boive commented 9 years ago

I expect to be able to tap up top in the browser window to go to the top of the current page, like a normal webpage.

Failure to do so basically makes it a no go on mobile, in my humble opinion.

Using iPhone 6+ iOS 8.3

roeierez commented 9 years ago

The behavior of scrolling to the top of the page when clicking on the status bar is not in the scope of the web view since there is not any javascript event for that. In order to get this behavior you need to wire the tap on the status bar (in native code) to the API call scrollToItem(0) that the list exposes. If you find any other way of doing this automatically without user intervention, I will be happy to hear and implement.