From 00de9ae7b74f7ea8104c460adaa15c385628a13b Mon Sep 17 00:00:00 2001 From: Alfarish Fizikri Date: Thu, 24 Jul 2025 05:09:17 +0700 Subject: [PATCH] chore: clean comment --- src/content/Components/RollingGallery/RollingGallery.vue | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/content/Components/RollingGallery/RollingGallery.vue b/src/content/Components/RollingGallery/RollingGallery.vue index 64fc2eb..ab020f7 100644 --- a/src/content/Components/RollingGallery/RollingGallery.vue +++ b/src/content/Components/RollingGallery/RollingGallery.vue @@ -127,21 +127,17 @@ const springTransition = computed(() => { const styleCache = new Map(); const getItemStyle = (index: number) => { - // Create a cache key based on current values const cacheKey = `${index}-${faceWidth.value}-${radius.value}`; - // Return a cached result if available if (styleCache.has(cacheKey)) { return styleCache.get(cacheKey)!; } - // Calculate and cache new style const style = { width: `${faceWidth.value}px`, transform: `rotateY(${index * (360 / REFERENCE_FACE_COUNT_SPACING)}deg) translateZ(${radius.value}px)` }; - // Limit cache size to prevent memory leaks if (styleCache.size > 50) { styleCache.clear(); }