From bc16473715cbdf89569acac0ce7618b250422150 Mon Sep 17 00:00:00 2001 From: Leo Vasanko Date: Thu, 25 Sep 2025 10:28:35 -0600 Subject: [PATCH] Soften the scroll blur effect a tiny bit to avoid glitches when missing a frame. --- src/components/CalendarView.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/CalendarView.vue b/src/components/CalendarView.vue index 92815a4..09fc14e 100644 --- a/src/components/CalendarView.vue +++ b/src/components/CalendarView.vue @@ -54,7 +54,7 @@ let _blurFrame = null function _updateMotionBlur() { const pos = scrollTop.value || 0 - if (_lastBlurPos) blurAmount.value = Math.min(20, 0.5 * Math.abs(pos - _lastBlurPos)) + if (_lastBlurPos) blurAmount.value = 0.1 * blurAmount.value + 0.9 * Math.min(20, 0.5 * Math.abs(pos - _lastBlurPos)) if (!_lastBlurPos || blurAmount.value < 5) blurAmount.value = 0 _lastBlurPos = pos _blurFrame = requestAnimationFrame(_updateMotionBlur)