File tree 1 file changed +29
-2
lines changed
1 file changed +29
-2
lines changed Original file line number Diff line number Diff line change 1223
1223
$cur . dataset . status = 'wait' ;
1224
1224
return ;
1225
1225
} else {
1226
- e . stop ( ) ;
1226
+ //e.stop();
1227
+ //fixed #148 magic多个子页面列表动效失效bug
1228
+ var $willgoneSlide = $slides [ index + 1 ] ;
1229
+ var buildItems = toArray ( $ ( '.building' , $willgoneSlide ) ) ;
1230
+ var buildedItems = toArray ( $ ( '.builded' , $willgoneSlide ) ) ;
1231
+ if ( buildItems . length > 0 || buildedItems . length > 0 ) {
1232
+ var willgoneSlideEvent = dispatchEvent ( $willgoneSlide , 'Build' , {
1233
+ direction : 'prev' ,
1234
+ container : $willgoneSlide
1235
+ } ) ;
1236
+ willgoneSlideEvent . stop ( ) ;
1237
+ return ;
1238
+ } else {
1239
+ e . stop ( ) ;
1240
+ }
1227
1241
}
1228
1242
} else {
1229
1243
index ++ ;
1234
1248
$cur . dataset . status = 'done' ;
1235
1249
return ;
1236
1250
} else {
1237
- e . stop ( ) ;
1251
+ //e.stop();
1252
+ //fixed #148 magic多个子页面列表动效失效bug
1253
+ var $willgoneSlide = $slides [ index - 1 ] ;
1254
+ var toBuildItems = toArray ( $ ( '.tobuild' , $willgoneSlide ) ) ;
1255
+ if ( toBuildItems . length > 0 ) {
1256
+ var willgoneSlideEvent = dispatchEvent ( $willgoneSlide , 'Build' , {
1257
+ direction : 'next' ,
1258
+ container : $willgoneSlide
1259
+ } ) ;
1260
+ willgoneSlideEvent . stop ( ) ;
1261
+ return ;
1262
+ } else {
1263
+ e . stop ( ) ;
1264
+ }
1238
1265
}
1239
1266
}
1240
1267
$cur . dataset . index = index ;
You can’t perform that action at this time.
0 commit comments