speed up swipe action reveal
This commit is contained in:
1 parent
594627806c
commit
354fec90bd
2 files changed
+4
-4
No files matched your search
+2
-2
@@ -3866,10 +3866,10 @@ function renderSessionListFromCache(){
|
||||
const offset=Math.sign(rawOffset)*(Math.abs(revealedOffset)+Math.sqrt(overshoot)*5);
|
||||
const progress=Math.min(1,Math.abs(revealedOffset)/72);
|
||||
const reveal=Math.abs(offset);
|
||||
const iconScale=Math.min(1,Math.max(.01,progress*1.12));
|
||||
const iconScale=Math.min(1,Math.max(.01,progress*1.7));
|
||||
const badgeSize=34*iconScale;
|
||||
const iconSize=18*iconScale;
|
||||
const labelScale=Math.min(1,Math.max(.01,progress*1.12));
|
||||
const labelScale=Math.min(1,Math.max(.01,progress*1.7));
|
||||
const actionInset=0;
|
||||
const tileGap=6;
|
||||
const badgeStretch=Math.min(Math.max(0,reveal-34),overshoot*1.15,Math.max(0,reveal-badgeSize-actionInset-tileGap));
|
||||
|
||||
@@ -123,10 +123,10 @@ def test_session_swipe_paint_uses_transform_only_exit():
|
||||
assert "--session-swipe-progress" in paint
|
||||
assert "--session-swipe-badge-stretch" in paint
|
||||
assert "const reveal=Math.abs(offset);" in paint
|
||||
assert "const iconScale=Math.min(1,Math.max(.01,progress*1.12));" in paint
|
||||
assert "const iconScale=Math.min(1,Math.max(.01,progress*1.7));" in paint
|
||||
assert "const badgeSize=34*iconScale;" in paint
|
||||
assert "const iconSize=18*iconScale;" in paint
|
||||
assert "const labelScale=Math.min(1,Math.max(.01,progress*1.12));" in paint
|
||||
assert "const labelScale=Math.min(1,Math.max(.01,progress*1.7));" in paint
|
||||
assert "const actionInset=0;" in paint
|
||||
assert "const tileGap=6;" in paint
|
||||
assert "const badgeStretch=Math.min(Math.max(0,reveal-34),overshoot*1.15,Math.max(0,reveal-badgeSize-actionInset-tileGap));" in paint
|
||||
|
||||
Reference in new issue
Block a user