mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-18 19:21:34 +08:00
Zoomer
This commit is contained in:
@ -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!');
|
||||
|
Reference in New Issue
Block a user