diff --git a/js/app/packages/core/component/CustomScrollbar.tsx b/js/app/packages/core/component/CustomScrollbar.tsx index 7b1606704a6..7a30c7b1a0b 100644 --- a/js/app/packages/core/component/CustomScrollbar.tsx +++ b/js/app/packages/core/component/CustomScrollbar.tsx @@ -171,20 +171,14 @@ function InnerCustomScrollbar(props: CustomScrollbarProps) { return (
setIsHovering(true)} onMouseLeave={() => setIsHovering(false)} > {/* Track */}
{/* Thumb */}
{ @@ -204,17 +198,6 @@ function InnerCustomScrollbar(props: CustomScrollbarProps) { const normalizedVel = Math.min(vel / 5, 1); return normalizedVel; })(), - 'box-shadow': (() => { - if (isDragging()) { - return '0 0 8px oklch(from var(--color-accent) l c h / 0.6), 0 0 4px oklch(from var(--color-accent) l c h / 0.4)'; - } - const vel = scrollVelocity(); - if (vel === 0) return 'none'; - const normalizedVel = Math.min(vel / 5, 1); - const glowOpacity = normalizedVel * 0.6; - const glowOpacity2 = normalizedVel * 0.4; - return `0 0 ${8 * normalizedVel}px oklch(from var(--color-accent) l c h / ${glowOpacity}), 0 0 ${4 * normalizedVel}px oklch(from var(--color-accent) l c h / ${glowOpacity2})`; - })(), transform: (() => { if (isDragging()) return 'scaleX(1.6)'; const vel = scrollVelocity(); @@ -223,7 +206,7 @@ function InnerCustomScrollbar(props: CustomScrollbarProps) { const normalizedVel = Math.min(vel / 5, 1); return `scaleX(${1 + normalizedVel * 1.0})`; })(), - 'transition-property': 'opacity, box-shadow, transform', + 'transition-property': 'opacity, transform', }} onMouseDown={handleMouseDown} />