diff --git a/src/Cell/index.tsx b/src/Cell/index.tsx index c9a0f3802..e7403c4ac 100644 --- a/src/Cell/index.tsx +++ b/src/Cell/index.tsx @@ -143,8 +143,16 @@ function Cell(props: CellProps) { const [absScroll, scrollWidth] = scrollInfo; - const showStartShadow = isFixStart && fixedStartShadow && absScroll > fixStart; - const showEndShadow = isFixEnd && fixedEndShadow && scrollWidth - absScroll > fixEnd; + const showStartShadow = + (isFixStart && fixedStartShadow && absScroll) - + // For precision, we not show shadow by default which has better user experience. + (fixStart as number) >= + 1; + const showEndShadow = + (isFixEnd && fixedEndShadow && scrollWidth - absScroll) - + // Same as above + (fixEnd as number) >= + 1; return [showStartShadow, showEndShadow]; });