Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(108)

Issue 11412266: [telemetry] Fix smoothScrollBy scroll distance calculation. (Closed)

Created:
8 years ago by dtu
Modified:
8 years ago
Reviewers:
nduca
CC:
chromium-reviews, chrome-speed-team+watch_google.com, pam+watch_chromium.org, telemetry+watch_chromium.org
Visibility:
Public.

Description

[telemetry] Fix smoothScrollBy scroll distance calculation. The smoothness benchmark mean frame times were off because they would attempt to smoothScrollBy to the scrollHeight, but you need to subtract the viewport height to get the correct scrolling distance. Because smoothScrollBy doesn't stop when you hit the bottom of the page, the duration of the scroll gesture was longer than it should be. This made the numbers worse for shorter pages. BUG=162922 TEST=Run a smoothness_benchmark. Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=170418

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+22 lines, -20 lines) Patch
M tools/telemetry/telemetry/scroll.js View 4 chunks +22 lines, -20 lines 0 comments Download

Messages

Total messages: 2 (0 generated)
dtu
8 years ago (2012-11-30 06:30:16 UTC) #1
nduca
8 years ago (2012-11-30 07:21:02 UTC) #2
lgtm

Powered by Google App Engine
This is Rietveld 408576698