File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -33,8 +33,8 @@ export default class Parallax extends Component {
3333 }
3434 // create a new parallax element and save the reference
3535 this . element = ParallaxScrollListener . createElement ( {
36- _inner : this . _inner ,
37- _outer : this . _outer ,
36+ elInner : this . _inner ,
37+ elOuter : this . _outer ,
3838 props : this . props ,
3939 } ) ;
4040 }
Original file line number Diff line number Diff line change @@ -136,7 +136,7 @@ const ParallaxScroller = (function() {
136136 // calculating them on every frame -- instead these values
137137 // are cached on the element to access later when determining
138138 // the element's position and offset.
139- const el = element . _outer ;
139+ const el = element . elOuter ;
140140 const rect = el . getBoundingClientRect ( ) ;
141141 const elHeight = el . offsetHeight ;
142142 const elWidth = el . offsetWidth ;
@@ -267,7 +267,7 @@ const ParallaxScroller = (function() {
267267 const offsets = getParallaxOffsets ( element . offsets , percentMoved , slowerScrollRate ) ;
268268
269269 // Apply styles
270- const el = element . _inner ;
270+ const el = element . elInner ;
271271 el . style . cssText =
272272 `will-change:transform;
273273 position:relative;
@@ -277,7 +277,7 @@ const ParallaxScroller = (function() {
277277 function _resetStyles ( element ) {
278278 // Resets any styles that may be left over when
279279 // resizing from desktop to mobile apply styles
280- const el = element . _inner ;
280+ const el = element . elInner ;
281281 el . style . cssText =
282282 `will-change:none;
283283 position:relative;
You can’t perform that action at this time.
0 commit comments