am 4da2ed7a: Fix too thick gesture trail width
* commit '4da2ed7a78c63284fa3869450a492ee7ae420ed9': Fix too thick gesture trail widthmain
commit
7f83014a68
|
@ -133,7 +133,8 @@ final class GesturePreviewTrail {
|
|||
private static float getWidth(final int elapsedTime, final Params params) {
|
||||
final int deltaTime = params.mTrailLingerDuration - elapsedTime;
|
||||
final float deltaWidth = params.mTrailStartWidth - params.mTrailEndWidth;
|
||||
return (deltaTime * deltaWidth) / params.mTrailLingerDuration + params.mTrailEndWidth;
|
||||
return Math.max(
|
||||
(deltaTime * deltaWidth) / params.mTrailLingerDuration, params.mTrailEndWidth);
|
||||
}
|
||||
|
||||
private final RoundedLine mRoundedLine = new RoundedLine();
|
||||
|
|
Loading…
Reference in New Issue