Commit 33e91487 authored by Yulun Wu's avatar Yulun Wu Committed by Commit Bot

Adjust drag handle contextual nudge animation.

Bug: 1059507
Change-Id: Icb23df73dd76253ed8432b4893473db3d1952545
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2095560Reviewed-by: default avatarManu Cornet <manucornet@chromium.org>
Reviewed-by: default avatarToni Baržić <tbarzic@chromium.org>
Commit-Queue: Yulun Wu <yulunwu@chromium.org>
Cr-Commit-Position: refs/heads/master@{#748488}
parent 55e3dcd7
......@@ -29,7 +29,10 @@ constexpr int kVerticalClickboxPadding = 15;
constexpr int kDragHandleNudgeVerticalMarginRise = -4;
// Drag handle translation distance for the second part of nudge animation.
// Also the translation distance for the ContextualNudge text box.
constexpr int kDragHandleVerticalMarginDrop = 10;
// Drag handle contextual nudge text box translation distance for the nudge
// animation at the end.
constexpr int kDragHandleNudgeVerticalMarginDrop = 8;
// Animation time for each translation of drag handle to show contextual nudge.
......@@ -257,7 +260,7 @@ void DragHandle::AnimateDragHandleShow() {
kDragHandleNudgeVerticalMarginRise, kDragHandleAnimationTime,
ui::LayerAnimator::IMMEDIATELY_ANIMATE_TO_NEW_TARGET);
ScheduleDragHandleTranslationAnimation(
kDragHandleNudgeVerticalMarginDrop, kDragHandleAnimationTime,
kDragHandleVerticalMarginDrop, kDragHandleAnimationTime,
ui::LayerAnimator::ENQUEUE_NEW_ANIMATION);
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment