From 354fec90bd6cf06c1a72a78a7f8cee831994b0a0 Mon Sep 17 00:00:00 2001 From: dobby-d-elf Date: Thu, 28 May 2026 11:09:26 -0600 Subject: [PATCH] speed up swipe action reveal --- static/sessions.js | 4 ++-- tests/test_session_touch_actions.py | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/static/sessions.js b/static/sessions.js index d65259ff..443d848f 100644 --- a/static/sessions.js +++ b/static/sessions.js @@ -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)); diff --git a/tests/test_session_touch_actions.py b/tests/test_session_touch_actions.py index e3f0169d..d56d7589 100644 --- a/tests/test_session_touch_actions.py +++ b/tests/test_session_touch_actions.py @@ -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