From 1fa53202755f4787cbbb32aafe8a5e5b25187c0c Mon Sep 17 00:00:00 2001 From: "mr. m" Date: Tue, 14 Oct 2025 03:25:45 +0200 Subject: [PATCH] feat: Increase the number of steps for glance animation, b=no-bug, c=glance --- src/zen/glance/ZenGlanceManager.mjs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/zen/glance/ZenGlanceManager.mjs b/src/zen/glance/ZenGlanceManager.mjs index ce6258f52..5134e3bff 100644 --- a/src/zen/glance/ZenGlanceManager.mjs +++ b/src/zen/glance/ZenGlanceManager.mjs @@ -26,7 +26,7 @@ // Arc animation configuration #ARC_CONFIG = Object.freeze({ - ARC_STEPS: 40, // Increased for smoother bounce + ARC_STEPS: 60, // Increased for smoother bounce MAX_ARC_HEIGHT: 30, ARC_HEIGHT_RATIO: 0.2, // Arc height = distance * ratio (capped at MAX_ARC_HEIGHT) }); @@ -609,7 +609,7 @@ } let scale = 1; - const bounceSteps = 50; + const bounceSteps = 60; if (direction === 'opening') { for (let i = 0; i < bounceSteps; i++) { const progress = i / bounceSteps;