Skip to content

Commit ab4a125

Browse files
committed
ページ内に対象要素のない場合の処理を追加
1 parent e382c56 commit ab4a125

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/js-scroll-effect-module.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -311,6 +311,8 @@ export default class SCROLL_EFFECT_MODULE {
311311

312312
_actionChange(){
313313

314+
if(!this.state.PosList.length) return false;
315+
314316
this.state.PosListFix.map((el)=>{
315317
if(!DOM.hasClass(this.$elemItem[el.index], this.config.addClassNameActive)){
316318
el.count++;

0 commit comments

Comments
 (0)