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

Issue 472463002: On some webpages, touch scrolling speed is too slow / fast (Closed)

Created:
6 years, 4 months ago by kjakubowski
Modified:
6 years, 2 months ago
Reviewers:
Rick Byers
CC:
blink-reviews, blink-reviews-events_chromium.org, dglazkov+blink, eae+blinkwatch
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Visibility:
Public.

Description

On some webpages (for example: stackoverflow.com), touch scrolling speed is too slow / fast when zoomed in / out. The problem was that the zoom multiplier was applied twice: - in handleGestureScrollUpdate - somewhere deeper when handling wheel event This patch fixes this issue, by passing unscaled value to EventHandler::sendScrollEventToView(...). BUG=403304 TEST=Open stackoverflow.com, Set browser zoom to 50%, touch scroll (sendScrollEventToView path) TEST=Open http://goo.gl/OYhULR, Set browser zoom to 200%, touch scroll text area (RenderBox path) Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=183318

Patch Set 1 : Fixed touch scrolling when browser-zoomed in/out. Added tests. #

Total comments: 1

Patch Set 2 : Fixed tests (one test for page scroll, another for div scroll). #

Patch Set 3 : Fixed values in tests to address precision issues. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+47 lines, -38 lines) Patch
A + LayoutTests/fast/events/touch/gesture/touch-gesture-scroll-div-zoomed.html View 4 chunks +11 lines, -7 lines 0 comments Download
A + LayoutTests/fast/events/touch/gesture/touch-gesture-scroll-div-zoomed-expected.txt View 2 chunks +4 lines, -4 lines 0 comments Download
A + LayoutTests/fast/events/touch/gesture/touch-gesture-scroll-page-zoomed.html View 1 2 6 chunks +26 lines, -18 lines 0 comments Download
A + LayoutTests/fast/events/touch/gesture/touch-gesture-scroll-page-zoomed-expected.txt View 1 2 2 chunks +3 lines, -3 lines 0 comments Download
M Source/core/page/EventHandler.cpp View 1 2 3 chunks +3 lines, -6 lines 0 comments Download

Messages

Total messages: 41 (8 generated)
kjakubowski
Hi, Can you have a look at my review?
6 years, 4 months ago (2014-08-14 10:17:03 UTC) #1
Rick Byers
On 2014/08/14 10:17:03, kjakubowski wrote: > Hi, > > Can you have a look at ...
6 years, 4 months ago (2014-08-15 16:11:50 UTC) #2
Rick Byers
On 2014/08/15 16:11:50, Rick Byers wrote: > On 2014/08/14 10:17:03, kjakubowski wrote: > > Hi, ...
6 years, 4 months ago (2014-08-15 16:19:39 UTC) #3
kjakubowski
Thanks for looking at this issue. I've added some more notes to the bug about ...
6 years, 4 months ago (2014-08-18 10:57:51 UTC) #4
bokan
On 2014/08/15 16:19:39, Rick Byers wrote: > On 2014/08/15 16:11:50, Rick Byers wrote: > > ...
6 years, 4 months ago (2014-08-18 15:08:19 UTC) #5
Rick Byers
On 2014/08/18 15:08:19, bokan wrote: > On 2014/08/15 16:19:39, Rick Byers wrote: > > On ...
6 years, 4 months ago (2014-08-18 15:36:54 UTC) #6
kjakubowski
> > That appears to be the case (see bug) - although that's easy to ...
6 years, 3 months ago (2014-09-15 09:43:49 UTC) #7
kjakubowski
As for the correctness of this patch: Multiplication of delta by inverse of current browser ...
6 years, 3 months ago (2014-09-15 12:32:44 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patchset/472463002/20001
6 years, 3 months ago (2014-09-17 10:46:55 UTC) #11
commit-bot: I haz the power
No LGTM from a valid reviewer yet. Only full committers are accepted. Even if an ...
6 years, 3 months ago (2014-09-17 10:46:59 UTC) #13
Rick Byers
On 2014/09/15 09:43:49, kjakubowski wrote: > > > > That appears to be the case ...
6 years, 3 months ago (2014-09-17 14:38:51 UTC) #14
kjakubowski
> This fix looks reasonable to me, but we need automated tests for it. Luckily ...
6 years, 3 months ago (2014-09-18 15:52:12 UTC) #16
Rick Byers
On 2014/09/18 15:52:12, kjakubowski wrote: > > This fix looks reasonable to me, but we ...
6 years, 3 months ago (2014-09-18 16:01:54 UTC) #17
kjakubowski
> Thanks, but rather than modify the existing test cases, can you please add new ...
6 years, 3 months ago (2014-09-18 17:10:42 UTC) #18
kjakubowski
On 2014/09/18 17:10:42, kjakubowski wrote: > > Thanks, but rather than modify the existing test ...
6 years, 3 months ago (2014-09-22 12:46:15 UTC) #20
Rick Byers
Thanks. How are you uploading your patches? Rietveld seems to be overwriting your earlier versions ...
6 years, 3 months ago (2014-09-22 21:21:16 UTC) #21
Rick Byers
On 2014/09/22 21:21:16, Rick Byers wrote: > Thanks. How are you uploading your patches? Rietveld ...
6 years, 3 months ago (2014-09-22 21:23:00 UTC) #22
kjakubowski
On 2014/09/22 21:21:16, Rick Byers wrote: > Thanks. How are you uploading your patches? Rietveld ...
6 years, 3 months ago (2014-09-23 07:08:55 UTC) #23
Rick Byers
On 2014/09/23 07:08:55, kjakubowski wrote: > On 2014/09/22 21:21:16, Rick Byers wrote: > > Thanks. ...
6 years, 3 months ago (2014-09-23 13:34:26 UTC) #24
kjakubowski
OK, next time I will leave old patches alone :).
6 years, 3 months ago (2014-09-23 13:48:41 UTC) #25
kjakubowski
> https://codereview.chromium.org/472463002/diff/60001/LayoutTests/fast/events/touch/gesture/gesture-scroll-zoomed.html#newcode79 > LayoutTests/fast/events/touch/gesture/gesture-scroll-zoomed.html:79: > shouldBe('movingdiv.scrollTop', scrollAmountY[scrollsOccurred]); > This test is supposed to be checking ...
6 years, 3 months ago (2014-09-23 13:49:45 UTC) #26
kjakubowski
I've uploaded fixed tests: - recordScroll function had to be modified, to pass presubmit tests ...
6 years, 3 months ago (2014-09-23 15:15:03 UTC) #27
Rick Byers
On 2014/09/23 15:15:03, kjakubowski wrote: > I've uploaded fixed tests: > - recordScroll function had ...
6 years, 3 months ago (2014-09-23 17:57:10 UTC) #28
kjakubowski
Verified: - touch-gesture-scroll-div-zoomed.html checks RenderBox path in EventHandler::handleGestureScrollUpdate - touch-gesture-scroll-page-zoomed.html checks default path (sendScrollEventToView) in ...
6 years, 3 months ago (2014-09-24 06:58:47 UTC) #29
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/472463002/80001
6 years, 3 months ago (2014-09-24 07:01:02 UTC) #31
kjakubowski
On 2014/09/24 07:01:02, I haz the power (commit-bot) wrote: > CQ is trying da patch. ...
6 years, 3 months ago (2014-09-24 08:05:49 UTC) #32
kjakubowski
On 2014/09/24 08:05:49, kjakubowski wrote: > On 2014/09/24 07:01:02, I haz the power (commit-bot) wrote: ...
6 years, 3 months ago (2014-09-24 08:13:42 UTC) #33
Rick Byers
On 2014/09/24 08:13:42, kjakubowski wrote: > On 2014/09/24 08:05:49, kjakubowski wrote: > > On 2014/09/24 ...
6 years, 2 months ago (2014-10-01 16:09:04 UTC) #34
kjakubowski
> Did you see that you can click on the layout_test_results link and see the ...
6 years, 2 months ago (2014-10-01 19:30:27 UTC) #35
kjakubowski
> > It looks like you need to update your test for my recent change ...
6 years, 2 months ago (2014-10-06 11:22:11 UTC) #37
Rick Byers
On 2014/10/06 11:22:11, kjakubowski wrote: > > > It looks like you need to update ...
6 years, 2 months ago (2014-10-06 21:14:51 UTC) #38
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/472463002/120001
6 years, 2 months ago (2014-10-07 07:56:47 UTC) #40
commit-bot: I haz the power
6 years, 2 months ago (2014-10-07 08:53:42 UTC) #41
Message was sent while issue was closed.
Committed patchset #3 (id:120001) as 183318

Powered by Google App Engine
This is Rietveld 408576698