Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 21b310d9 authored by omarmt's avatar omarmt
Browse files

[STL] Increase default transitionInterceptionThreshold to 0.05

In SceneTransitionLayout, the transitionInterceptionThreshold value is
used during a transition to decide whether the new gesture should
control the transition or the element in the scene. The default value is
 currently 0, which means that the animation does not need to be 100%
 complete before the gesture can control the transition in the STL.

This CL sets the tolerance value to 0.05 (5% tolerance), which means
that the gesture will control the elements of the scene when the
animation is 95% complete. This is because many animations slow down as
they approach completion and may appear finished even when they have not
 reached 100%.

See b/345176528#comment2 - before.mp4 vs after.mp4

Test: Manually tested on our demo app
Bug: 345176528
Flag: com.android.systemui.scene_container
Change-Id: Ia8c354a8137da17591e3275e0de10b18fa21bec6
parent 9d61d737
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment