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

Issue 7647015: ntp4: Horizontal swipes should only trigger history on mac when (Closed)

Created:
9 years, 4 months ago by Nico
Modified:
9 years, 4 months ago
CC:
chromium-reviews, estade+watch_chromium.org, arv (Not doing code reviews)
Visibility:
Public.

Description

ntp4: Horizontal swipes should only trigger history on mac when the ntp is at the first card (for backward navigation) or last card (for forward navigation). BUG=92786, 92785 TEST=see bug Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=97566

Patch Set 1 #

Patch Set 2 : . #

Total comments: 5

Patch Set 3 : . #

Unified diffs Side-by-side diffs Delta from patch set Stats (+20 lines, -2 lines) Patch
M chrome/browser/resources/ntp4/card_slider.js View 1 2 3 chunks +20 lines, -2 lines 0 comments Download

Messages

Total messages: 10 (0 generated)
Nico
Also see http://codereview.chromium.org/7618036/
9 years, 4 months ago (2011-08-15 04:15:08 UTC) #1
Evan Stade
I think it would work better if you prevent default any time this != rightmost ...
9 years, 4 months ago (2011-08-15 21:45:14 UTC) #2
Nico
On Mon, Aug 15, 2011 at 2:45 PM, <estade@chromium.org> wrote: > I think it would ...
9 years, 4 months ago (2011-08-15 22:05:49 UTC) #3
Evan Stade
the difference is the behavior if you are already on the rightmost page and start ...
9 years, 4 months ago (2011-08-15 22:21:28 UTC) #4
Evan Stade
by the way, the value of scrollAmountPerPage was not picked to optimize the mac touchpad ...
9 years, 4 months ago (2011-08-15 22:29:16 UTC) #5
Nico
Made the threshold slightly higher, made the logic work with that threshold. (Your suggestion as ...
9 years, 4 months ago (2011-08-19 22:22:46 UTC) #6
Evan Stade
lgtm you can also add bug 92785 http://codereview.chromium.org/7647015/diff/6001/chrome/browser/resources/ntp4/card_slider.js File chrome/browser/resources/ntp4/card_slider.js (right): http://codereview.chromium.org/7647015/diff/6001/chrome/browser/resources/ntp4/card_slider.js#newcode230 chrome/browser/resources/ntp4/card_slider.js:230: this.mouseWheelScrollAmount_ < ...
9 years, 4 months ago (2011-08-19 22:35:40 UTC) #7
Nico
Thanks! http://codereview.chromium.org/7647015/diff/6001/chrome/browser/resources/ntp4/card_slider.js File chrome/browser/resources/ntp4/card_slider.js (right): http://codereview.chromium.org/7647015/diff/6001/chrome/browser/resources/ntp4/card_slider.js#newcode230 chrome/browser/resources/ntp4/card_slider.js:230: this.mouseWheelScrollAmount_ < 0) On 2011/08/19 22:35:40, Evan Stade ...
9 years, 4 months ago (2011-08-19 22:54:47 UTC) #8
Evan Stade
http://codereview.chromium.org/7647015/diff/6001/chrome/browser/resources/ntp4/card_slider.js File chrome/browser/resources/ntp4/card_slider.js (right): http://codereview.chromium.org/7647015/diff/6001/chrome/browser/resources/ntp4/card_slider.js#newcode233 chrome/browser/resources/ntp4/card_slider.js:233: var scrollAmountPerPage = cr.isMac ? 400 : 120; On ...
9 years, 4 months ago (2011-08-19 23:10:56 UTC) #9
commit-bot: I haz the power
9 years, 4 months ago (2011-08-20 06:18:39 UTC) #10
Change committed as 97566

Powered by Google App Engine
This is Rietveld 408576698