Cross Fade animation: some behaviors can be improved. |
|||||
Issue descriptionPlease see attached video. There are two behaviors looks can be improved: 1. The transient window goes to the target position without animation. We can animate the transient window as well. 2. During animation, if press "alt +" again, the old_window animation cannot be stopped, and will be animating to the old target. (Do we want to stop the old_window animation immediately as well? This behavior could be hard to change.)
,
Aug 8 2017
For 3, there are two animations: transform and opacity. When shrinking the window from maximized window to smaller size window, there is NO opacity change, settings.observer::OnImplicitAnimationsCompleted get called immediately even the transform animation is still on-going. I am trying to figure out why.
,
Aug 8 2017
Thanks to Oshima, item 3 is not a bug. It depends where I add the observer to the ScopedLayerAnimationSettings. I need to add observer before I set transform animation.
,
Aug 8 2017
,
Aug 8 2017
Removed the item 3 in the description. I will fix the item 1 first.
,
Aug 9 2017
Animating transient window position seems fine. Or frankly, not fixing one or both of these isses seems OK. They seem like pretty rare scenarios.
,
Aug 9 2017
I have a fix for animating transient window. But in this fix, the transient window will be applied the same scale effect, which may look weird (The transient window always has the same size). please see the attached video. oshima@, WDYT? If we want to only scale the parent window, not the transient window, it will become complicated to calculate the initial position of the transient window.
,
Aug 9 2017
+varkha@ who implement similar effect in overview mode. I might want to reuse the code TransientDescendantIterator[Range] in scoped_transform_overview_window.cc. [1] [1] https://cs.chromium.org/chromium/src/ash/wm/overview/scoped_transform_overview_window.cc?l=48&rcl=096cf059ac9ed4b9da1b2dfb6235717859d1c941 Do you think it is ok to move the class in a window util file if I end up need to reuse the code?
,
Aug 9 2017
drive-by comment - scaling the transient looks kind of weird to me
,
Aug 1
,
Sep 28
,
Oct 5
Put this back to queue if we want to improve this. And lower the priority. |
|||||
►
Sign in to add a comment |
|||||
Comment 1 by wutao@chromium.org
, Aug 8 2017Labels: OS-Chrome