CHANGE overlayscrollbar option so the scrollbars are visible on hovering over the scrollable area

This commit is contained in:
Norbert de Langen 2020-07-16 16:37:31 +02:00
parent 181241ef4d
commit 8654a04de2
No known key found for this signature in database
GPG Key ID: 976651DA156C2825

View File

@ -11,7 +11,7 @@ export interface ScrollProps {
}
const Scroll = styled(({ vertical, horizontal, ...rest }: ScrollProps) => (
<OverlayScrollbarsComponent options={{ scrollbars: { autoHide: 'scroll' } }} {...rest} />
<OverlayScrollbarsComponent options={{ scrollbars: { autoHide: 'leave' } }} {...rest} />
))<ScrollProps>(
({ vertical }) =>
!vertical