This commit is contained in:
Max Lynch
2015-09-01 15:45:28 -05:00
parent 1027d2bacc
commit 11f47a72a1
2 changed files with 50 additions and 31 deletions

View File

@ -70,10 +70,13 @@ export class Slides extends Ion {
paginationClickable: true,
lazyLoading: true,
onSlideChangeStart: (swiper) => {
console.log('Slide change!', swiper);
this.scrollChildren.forEach((s) => {
s.resetZoom();
});
console.log('Slide change!', swiper.previousIndex);
let so = this.scrollChildren._results[swiper.previousIndex];
if(so) {
setTimeout(() => {
so.resetZoom();
}, 300);
}
},
onSlideChangeEnd: (swiper) => {
console.log('Slide changED!');