From 99e9a1fb2c21c1d2ae6b2de674a492f5e598feec Mon Sep 17 00:00:00 2001 From: Ilia Mashkov Date: Wed, 3 Jun 2026 16:13:16 +0300 Subject: [PATCH] docs(Font): record short-line crossfade pop tradeoff on WINDOW_MIN --- .../Font/domain/windowSizeForLine/windowSizeForLine.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/entities/Font/domain/windowSizeForLine/windowSizeForLine.ts b/src/entities/Font/domain/windowSizeForLine/windowSizeForLine.ts index daa9f6d..d790360 100644 --- a/src/entities/Font/domain/windowSizeForLine/windowSizeForLine.ts +++ b/src/entities/Font/domain/windowSizeForLine/windowSizeForLine.ts @@ -15,6 +15,11 @@ const WINDOW_RATIO = 1 / 3; /** * Smallest band for a non-empty line — guarantees at least one crossfading char. + * + * Accepted tradeoff: short lines now get a band of 1–2, so a fast slider drag + * can unmount a char before its ~100ms opacity crossfade finishes, a slight pop. + * Worth it for the "bulk committed, small band shimmering" look on short lines; + * raising this trades that pop back for less committed bulk. */ const WINDOW_MIN = 1; /**