summaryrefslogtreecommitdiffstats
path: root/sync/api
diff options
context:
space:
mode:
authorrjkroege@chromium.org <rjkroege@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-12-08 04:17:50 +0000
committerrjkroege@chromium.org <rjkroege@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-12-08 04:17:50 +0000
commit0a5b7e27fc80da622864c98ee42a722c3160bcfa (patch)
tree65dbaef8cc56e2dbe71fbfe023ffd1c085162e28 /sync/api
parent3220d1bc79f230a576ef77de5c626796d8a92b89 (diff)
downloadchromium_src-0a5b7e27fc80da622864c98ee42a722c3160bcfa.zip
chromium_src-0a5b7e27fc80da622864c98ee42a722c3160bcfa.tar.gz
chromium_src-0a5b7e27fc80da622864c98ee42a722c3160bcfa.tar.bz2
Use consistent velocity trend to start a touch scroll gesture.
In the GestureRecognizer, we previously inititated scrolling when the finger leaves a L1-norm box surrounding the position of the touch down point. As a result, the page would seem to leap by the size of the L1-norm on the first paint after entering a scrolling gesture. This CL replaces the L1-norm box mechanism with a new mechanism for determining the start of a scroll: watch for the establishment of a consistent velocity trend across multiple touch moves. This permits determining that a scroll should start with a much smaller displacement than is needed with the L1-norm technique and eliminates the "leap" effect. BUG=141653 Review URL: https://chromiumcodereview.appspot.com/11469005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@171934 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'sync/api')
0 files changed, 0 insertions, 0 deletions