File tree 2 files changed +3
-2
lines changed 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -93,7 +93,7 @@ class Demo extends React.Component {
93
93
< div id = "page1" style = { { overflow : 'hidden' , background : '#133252' } } >
94
94
< ScrollOverPack
95
95
className = "page1"
96
- playScale = { 0.5 }
96
+ playScale = { 1 }
97
97
replay
98
98
hideProps = { { 0 : { reverse : true } } }
99
99
location = "page1"
Original file line number Diff line number Diff line change @@ -10,7 +10,8 @@ class ScrollElement extends React.Component {
10
10
componentDidMount ( ) {
11
11
this . dom = ReactDOM . findDOMNode ( this ) ;
12
12
if ( this . props . location ) {
13
- mapped . register ( this . props . location , document . getElementById ( this . props . location ) ) ;
13
+ this . dom = document . getElementById ( this . props . location ) ;
14
+ mapped . register ( this . props . location , this . dom ) ;
14
15
} else if ( this . props . id ) {
15
16
mapped . register ( this . props . id , this . dom ) ;
16
17
}
You can’t perform that action at this time.
0 commit comments