joelambert/ScrollFix — Issue #1: Problem with bounce
Author: joelambert
Created: 2011-10-16 14:00:50+00:00
State: open

Attempting a scroll when the scrolling section is rubber banding will cause the page to be moved rather that just the desired section.

I've been debugging with Weinre (http://debug.phonegap.com) and it appears that the `scrollTop` value is not correct when a bounce is happening. This might just be a throttled/network issue with Weinre but I suspect the rate at which the value is updated in the DOM isn't quick enough for our needs.

An example, scrolling to the top:

Start scroll: `scrollTop` = 386
Touch during rubber banding: `scrollTop` = 127 (should be < 0!)

I've also tried monitoring the `scroll` event to see if we can keep track of when the section is 'rubber banding' but it appears that, again, events are not fired quickly enough to reliably capture the rubber banding phase.