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

Skip to content
Commit a99314b6 authored by Glenn Maynard's avatar Glenn Maynard
Browse files

Clamp the duration of rotary animations.



If the user drags the rotary slowly, the spin animation can take a long
time; since the UI is locked for the duration, the user can get stuck
waiting five or more seconds after toggling mute for the rotary to swing
back around.  Clamp the animation time to at most one second, so it
always finishes in a reasonable time.

Note that fling velocity is normally used for the velocity that a scrolling
box can be flung; this setting assumes that the user can grab what he flung
again and stop it, which isn't the case here.  I think both
mMinimumVelocity and mMaximumVelocity could simply be removed, selecting
some arbitrarily large value as the maximum and leaving mMinimumVelocity
to clamp the minimum speed.  I've left them alone here.

Change-Id: I7d2f954ec884637c36ed3d86477e549bdb2ee92a
Signed-off-by: default avatarGlenn Maynard <glenn@zewt.org>
parent 2770abd7
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