|
|
Chromium Code Reviews|
Created:
4 years, 3 months ago by sunyunjia Modified:
4 years, 3 months ago CC:
chromium-reviews, darin-cc_chromium.org, dtapuska+chromiumwatch_chromium.org, jam, mlamouri+watch-content_chromium.org Base URL:
https://chromium.googlesource.com/chromium/src.git@master Target Ref:
refs/pending/heads/master Project:
chromium Visibility:
Public. |
DescriptionStop negating the overscroll velocity to enable the glow of main thread fling
The glow of the fling is calculated from the fling velocity, which may be
defined for gesture and scroll that are in opposite directions. The overscroll
glow logic expects to receive the fling scroll velocity as opposed to fling
gesture velocity. So we stop negating the value to enable the glow effect at
disable-threaded-scrolling.
BUG=597005
Committed: https://crrev.com/5b3f75d6275ec65b1db1116f58e462e729a782ac
Cr-Commit-Position: refs/heads/master@{#416137}
Patch Set 1 #
Total comments: 3
Patch Set 2 : Change the unittest result to match the change. #Patch Set 3 : Remove TODO #
Messages
Total messages: 40 (23 generated)
Description was changed from ========== Negate the velocity to enable the overscroll-glow when threaded scrolling is disabled BUG=597005 ========== to ========== Negate the overscroll velocity to enable the glow of main thread fling The glow of the fling is calculated from the overscroll velocity. In current implementation, the overscroll velocity at disable-threaded-scrolling is the negative value of the velocity at enable-threaded-scrolling, blocking the proper glow effect. So we negate the value at disable-threaded-scrolling to enable the glow effect. BUG=597005 ==========
sunyunjia@chromium.org changed reviewers: + dtapuska@chromium.org
The CQ bit was checked by sunyunjia@chromium.org to run a CQ dry run
Description was changed from ========== Negate the overscroll velocity to enable the glow of main thread fling The glow of the fling is calculated from the overscroll velocity. In current implementation, the overscroll velocity at disable-threaded-scrolling is the negative value of the velocity at enable-threaded-scrolling, blocking the proper glow effect. So we negate the value at disable-threaded-scrolling to enable the glow effect. BUG=597005 ========== to ========== Negate the overscroll velocity to enable the glow of main thread fling The glow of the fling is calculated from the overscroll velocity. In current implementation, the overscroll velocity at disable-threaded-scrolling is the negative value of the velocity at enable-threaded-scrolling, blocking the proper glow effect. So we negate the value at disable-threaded-scrolling to enable the glow effect. BUG=597005 ==========
PTAL, Thanks!
dtapuska@chromium.org changed reviewers: + majidvp@chromium.org
majidvp@ do you know the status of the crbug quoted in this change... https://codereview.chromium.org/2285423002/diff/1/content/renderer/input/rend... File content/renderer/input/render_widget_input_handler.cc (right): https://codereview.chromium.org/2285423002/diff/1/content/renderer/input/rend... content/renderer/input/render_widget_input_handler.cc:517: // TODO(sataya.m): don't negate velocity once http://crbug.com/499743 is Do we need to remove this comment? Is this partially fixed now?
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
The CQ bit was checked by sunyunjia@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: This issue passed the CQ dry run.
https://codereview.chromium.org/2285423002/diff/1/content/renderer/input/rend... File content/renderer/input/render_widget_input_handler.cc (right): https://codereview.chromium.org/2285423002/diff/1/content/renderer/input/rend... content/renderer/input/render_widget_input_handler.cc:517: // TODO(sataya.m): don't negate velocity once http://crbug.com/499743 is On 2016/08/29 21:16:34, dtapuska wrote: > Do we need to remove this comment? Is this partially fixed now? Overscroll glow logic expects to receive delta and velocity of scroll which are in the same direction. In the past this velocity here was the actual *gesture* velocity which needed to be negated to get scroll behaviour. I did some digging and I think this bokan@ changed the semantic of this velocity here which is probably the point where the glow effect broke: https://codereview.chromium.org/1755773002 So yes, please remove this TODO and close that bug as well :).
bokan@chromium.org changed reviewers: + bokan@chromium.org
https://codereview.chromium.org/2285423002/diff/1/content/renderer/input/rend... File content/renderer/input/render_widget_input_handler.cc (right): https://codereview.chromium.org/2285423002/diff/1/content/renderer/input/rend... content/renderer/input/render_widget_input_handler.cc:517: // TODO(sataya.m): don't negate velocity once http://crbug.com/499743 is On 2016/08/31 19:39:40, majidvp wrote: > On 2016/08/29 21:16:34, dtapuska wrote: > > Do we need to remove this comment? Is this partially fixed now? > > Overscroll glow logic expects to receive delta and velocity of scroll which are > in the same direction. > > In the past this velocity here was the actual *gesture* velocity which needed to > be negated to get scroll behaviour. I did some digging and I think this bokan@ > changed the semantic of this velocity here which is probably the point where the > glow effect broke: https://codereview.chromium.org/1755773002 > > So yes, please remove this TODO and close that bug as well :). Yes, I believe that's correct.
On 2016/08/31 21:04:30, bokan wrote: > https://codereview.chromium.org/2285423002/diff/1/content/renderer/input/rend... > File content/renderer/input/render_widget_input_handler.cc (right): > > https://codereview.chromium.org/2285423002/diff/1/content/renderer/input/rend... > content/renderer/input/render_widget_input_handler.cc:517: // TODO(sataya.m): > don't negate velocity once http://crbug.com/499743 is > On 2016/08/31 19:39:40, majidvp wrote: > > On 2016/08/29 21:16:34, dtapuska wrote: > > > Do we need to remove this comment? Is this partially fixed now? > > > > Overscroll glow logic expects to receive delta and velocity of scroll which > are > > in the same direction. > > > > In the past this velocity here was the actual *gesture* velocity which needed > to > > be negated to get scroll behaviour. I did some digging and I think this bokan@ > > changed the semantic of this velocity here which is probably the point where > the > > glow effect broke: https://codereview.chromium.org/1755773002 > > > > So yes, please remove this TODO and close that bug as well :). > > Yes, I believe that's correct. TODO Removed. PTAL, Thanks!
The CQ bit was checked by sunyunjia@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: This issue passed the CQ dry run.
lgtm
The CQ bit was checked by sunyunjia@chromium.org
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
The CQ bit was unchecked by commit-bot@chromium.org
Try jobs failed on following builders: chromium_presubmit on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presub...)
I would add to the description that the reason this was broken is because https://codereview.chromium.org/1755773002 started reporting velocity relative to the page, rather than relative to the screen. I would also phrase it as "Stopped negating" :)
but lgtm in any case
Description was changed from ========== Negate the overscroll velocity to enable the glow of main thread fling The glow of the fling is calculated from the overscroll velocity. In current implementation, the overscroll velocity at disable-threaded-scrolling is the negative value of the velocity at enable-threaded-scrolling, blocking the proper glow effect. So we negate the value at disable-threaded-scrolling to enable the glow effect. BUG=597005 ========== to ========== Stop negating the overscroll velocity to enable the glow of main thread fling The glow of the fling is calculated from the overscroll velocity. In current implementation, the overscroll velocity at disable-threaded-scrolling is the negative value of the velocity at enable-threaded-scrolling, blocking the proper glow effect. This was broken because https://codereview.chromium.org/1755773002 started reporting velocity relative to the page, rather than relative to the screen. So we stop negating the value at disable-threaded-scrolling to enable the glow effect. BUG=597005 ==========
sunyunjia@chromium.org changed reviewers: + esprehn@chromium.org
esprehn@ could you please take a look at this patch? Thanks!
nit: The description is a bit confusing. It talks about velocity at "disable-threaded-scrolling" vs it at "enable-threaded-scrolling". This is not the right terminology. I think you want to rephrease this to talk about fling velocity (I prefer fling velocity as it matches current naming and not overscroll velocity) which may be defined for gesture and scroll that are in opposite directions. The overscroll glow logic expects to receive the fling scroll velocity as opposed to fling gesture velocity. bokan@: > reporting velocity relative to the page, rather than relative to the screen Is this really accurate? I mean do we consider screen and page to be at opposite directions? I assumed we are taking about gesture velocity and scroll velocity which are in opposite directions.
> bokan@: > > reporting velocity relative to the page, rather than relative to the screen > > Is this really accurate? I mean do we consider screen and page to be at opposite > directions? I assumed we are taking about gesture velocity and scroll velocity > which > are in opposite directions. You're right, that's what I was trying to capture but scroll vs gesture is the better way to phrase it.
Description was changed from ========== Stop negating the overscroll velocity to enable the glow of main thread fling The glow of the fling is calculated from the overscroll velocity. In current implementation, the overscroll velocity at disable-threaded-scrolling is the negative value of the velocity at enable-threaded-scrolling, blocking the proper glow effect. This was broken because https://codereview.chromium.org/1755773002 started reporting velocity relative to the page, rather than relative to the screen. So we stop negating the value at disable-threaded-scrolling to enable the glow effect. BUG=597005 ========== to ========== Stop negating the overscroll velocity to enable the glow of main thread fling The glow of the fling is calculated from the fling velocity, which may be defined for gesture and scroll that are in opposite directions. The overscroll glow logic expects to receive the fling scroll velocity as opposed to fling gesture velocity. So we stop negating the value to enable the glow effect at disable-threaded-scrolling. BUG=597005 ==========
lgtm
The CQ bit was checked by sunyunjia@chromium.org
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
Message was sent while issue was closed.
Description was changed from ========== Stop negating the overscroll velocity to enable the glow of main thread fling The glow of the fling is calculated from the fling velocity, which may be defined for gesture and scroll that are in opposite directions. The overscroll glow logic expects to receive the fling scroll velocity as opposed to fling gesture velocity. So we stop negating the value to enable the glow effect at disable-threaded-scrolling. BUG=597005 ========== to ========== Stop negating the overscroll velocity to enable the glow of main thread fling The glow of the fling is calculated from the fling velocity, which may be defined for gesture and scroll that are in opposite directions. The overscroll glow logic expects to receive the fling scroll velocity as opposed to fling gesture velocity. So we stop negating the value to enable the glow effect at disable-threaded-scrolling. BUG=597005 ==========
Message was sent while issue was closed.
Committed patchset #3 (id:40001)
Message was sent while issue was closed.
Description was changed from ========== Stop negating the overscroll velocity to enable the glow of main thread fling The glow of the fling is calculated from the fling velocity, which may be defined for gesture and scroll that are in opposite directions. The overscroll glow logic expects to receive the fling scroll velocity as opposed to fling gesture velocity. So we stop negating the value to enable the glow effect at disable-threaded-scrolling. BUG=597005 ========== to ========== Stop negating the overscroll velocity to enable the glow of main thread fling The glow of the fling is calculated from the fling velocity, which may be defined for gesture and scroll that are in opposite directions. The overscroll glow logic expects to receive the fling scroll velocity as opposed to fling gesture velocity. So we stop negating the value to enable the glow effect at disable-threaded-scrolling. BUG=597005 Committed: https://crrev.com/5b3f75d6275ec65b1db1116f58e462e729a782ac Cr-Commit-Position: refs/heads/master@{#416137} ==========
Message was sent while issue was closed.
Patchset 3 (id:??) landed as https://crrev.com/5b3f75d6275ec65b1db1116f58e462e729a782ac Cr-Commit-Position: refs/heads/master@{#416137} |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
