This repository was archived by the owner on Mar 26, 2022. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed
src/overlay/src/components Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -6,13 +6,14 @@ import { Component } from 'react';
6
6
import type { Node } from 'react' ;
7
7
8
8
import PropTypes from 'prop-types' ;
9
- import ScrollLock from 'react-scrolllock' ;
10
9
import isFunction from 'lodash/isFunction' ;
10
+ import { TouchScrollable } from 'react-scrolllock' ;
11
11
import { CSSTransition } from 'react-transition-group' ;
12
12
13
- import Portal from '../../../portal' ;
14
13
import { OverlayInnerContainer , OverlayOuterContainer } from './styled/StyledOverlayComponents' ;
15
14
15
+ import Portal from '../../../portal' ;
16
+
16
17
type Props = {
17
18
children ? :Node ;
18
19
isScrollable ? :boolean ;
@@ -80,13 +81,13 @@ export default class Overlay extends Component<Props> {
80
81
timeout = { 200 }
81
82
classNames = "luk-fade" >
82
83
< Portal >
83
- < ScrollLock >
84
+ < TouchScrollable >
84
85
< OverlayOuterContainer transparent = { transparent } >
85
86
< OverlayInnerContainer isScrollable = { isScrollable } onClick = { this . handleOnClick } >
86
87
{ children }
87
88
</ OverlayInnerContainer >
88
89
</ OverlayOuterContainer >
89
- </ ScrollLock >
90
+ </ TouchScrollable >
90
91
</ Portal >
91
92
</ CSSTransition >
92
93
) ;
You can’t perform that action at this time.
0 commit comments