File tree Expand file tree Collapse file tree 1 file changed +10
-2
lines changed Expand file tree Collapse file tree 1 file changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -143,8 +143,16 @@ function Cell<RecordType>(props: CellProps<RecordType>) {
143
143
144
144
const [ absScroll , scrollWidth ] = scrollInfo ;
145
145
146
- const showStartShadow = isFixStart && fixedStartShadow && absScroll > fixStart ;
147
- const showEndShadow = isFixEnd && fixedEndShadow && scrollWidth - absScroll > fixEnd ;
146
+ const showStartShadow =
147
+ ( isFixStart && fixedStartShadow && absScroll ) -
148
+ // For precision, we not show shadow by default which has better user experience.
149
+ ( fixStart as number ) >=
150
+ 1 ;
151
+ const showEndShadow =
152
+ ( isFixEnd && fixedEndShadow && scrollWidth - absScroll ) -
153
+ // Same as above
154
+ ( fixEnd as number ) >=
155
+ 1 ;
148
156
149
157
return [ showStartShadow , showEndShadow ] ;
150
158
} ) ;
You can’t perform that action at this time.
0 commit comments