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

Commit 7a64e3a6 authored by Mindy Pereira's avatar Mindy Pereira
Browse files

DO NOT MERGE Set the cap at alpha to 80% of the total available.

No matter how much the user drags, the alpha like the height
should not get greater than a max and that max is 80% of what
is available in the image.

Change-Id: I57d181d6ea685461a44ed3ee29f83a675bc07fbc
parent df512214
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -38,7 +38,7 @@ public class EdgeGlow {
    // Time it will take for a pulled glow to decay to partial strength before release
    private static final int PULL_DECAY_TIME = 10000;

    private static final float MAX_ALPHA = 1.f;
    private static final float MAX_ALPHA = 0.8f;
    private static final float HELD_EDGE_ALPHA = 0.7f;
    private static final float HELD_EDGE_SCALE_Y = 0.5f;
    private static final float HELD_GLOW_ALPHA = 0.5f;