@@ -76,10 +76,11 @@ export default class SCROLL_EFFECT_MODULE {
7676 }
7777
7878 BindEvent ( ) {
79+ let _that = this ;
7980
8081 setTimeout ( ( ) => {
8182 this . Update ( ) ;
82- this . StoreElementStateAtPosList ( 'load' ) ;
83+ this . _storeElementStateAtPosList ( 'load' ) ;
8384 } , this . config . firstDelay ) ;
8485
8586 // for Resize-Event
@@ -118,7 +119,8 @@ export default class SCROLL_EFFECT_MODULE {
118119 let obj = {
119120 index : i ,
120121 pos : el . getBoundingClientRect ( ) . top + this . state . NumScrolltop ,
121- count : 0
122+ count : 0 ,
123+ active : false
122124 } ;
123125 this . state . PosList . push ( obj ) ;
124126 } ) ;
@@ -140,16 +142,17 @@ export default class SCROLL_EFFECT_MODULE {
140142 Refresh ( ) {
141143 this . Update ( ) ;
142144 this . Clear ( ) ;
143- this . ActionChange ( ) ;
145+ this . _actionChange ( ) ;
144146 }
145147
146148 Clear ( ) {
147149 this . state . PosList . map ( ( el , i ) => {
150+ el . active = false ;
148151 DOM . removeClass ( this . $elemItem [ i ] , this . config . addClassNameActive ) ;
149152 } ) ;
150153 }
151154
152- StoreElementStateAtPosList ( method ) {
155+ _storeElementStateAtPosList ( method ) {
153156
154157 // Array initialization
155158 this . state . PosListFix = [ ] ;
@@ -226,7 +229,7 @@ export default class SCROLL_EFFECT_MODULE {
226229 if ( method === 'load' ) {
227230 this . ActionChangeFirst ( ) ;
228231 } else if ( method === 'scroll' ) {
229- if ( this . state . PosListFixPre . length !== this . state . PosListFix . length ) this . ActionChange ( ) ;
232+ if ( this . state . PosListFixPre . length !== this . state . PosListFix . length ) this . _actionChange ( ) ;
230233 }
231234
232235 // Callback function.
@@ -277,7 +280,7 @@ export default class SCROLL_EFFECT_MODULE {
277280
278281 // After the initial display is completed
279282 if ( this . $elemItemFirst . length == loopCount ) {
280- this . ActionChange ( ) ;
283+ this . _actionChange ( ) ;
281284 }
282285
283286 } , this . config . firstDelaySteps ) ;
@@ -288,13 +291,13 @@ export default class SCROLL_EFFECT_MODULE {
288291 countFunc ( ) ;
289292 } else {
290293 setTimeout ( ( ) => {
291- this . ActionChange ( ) ;
294+ this . _actionChange ( ) ;
292295 } , this . config . firstDelaySteps ) ;
293296 }
294297
295298 }
296299
297- ActionChange ( ) {
300+ _actionChange ( ) {
298301
299302 this . state . PosListFix . map ( ( el ) => {
300303 if ( ! DOM . hasClass ( this . $elemItem [ el . index ] , this . config . addClassNameActive ) ) {
0 commit comments