MOBILE-4470 core: Fix slides reactivity
parent
1d15216b9f
commit
f5414d915a
|
@ -21,6 +21,7 @@ import { CorePromisedValue } from '@classes/promised-value';
|
||||||
import { IonContent } from '@ionic/angular';
|
import { IonContent } from '@ionic/angular';
|
||||||
import { CoreDomUtils, VerticalPoint } from '@services/utils/dom';
|
import { CoreDomUtils, VerticalPoint } from '@services/utils/dom';
|
||||||
import { CoreUtils } from '@services/utils/utils';
|
import { CoreUtils } from '@services/utils/utils';
|
||||||
|
import { NgZone } from '@singletons';
|
||||||
import { CoreDom } from '@singletons/dom';
|
import { CoreDom } from '@singletons/dom';
|
||||||
import { CoreEventObserver } from '@singletons/events';
|
import { CoreEventObserver } from '@singletons/events';
|
||||||
import { CoreMath } from '@singletons/math';
|
import { CoreMath } from '@singletons/math';
|
||||||
|
@ -62,8 +63,8 @@ export class CoreSwipeSlidesComponent<Item = unknown> implements OnChanges, OnDe
|
||||||
this.swiper.slideTo(this.options.initialSlide, 0, this.options.runCallbacksOnInit);
|
this.swiper.slideTo(this.options.initialSlide, 0, this.options.runCallbacksOnInit);
|
||||||
}
|
}
|
||||||
|
|
||||||
this.swiper.on('slideChangeTransitionStart', () => this.slideWillChange());
|
this.swiper.on('slideChangeTransitionStart', () => NgZone.run(() => this.slideWillChange()));
|
||||||
this.swiper.on('slideChangeTransitionEnd', () => this.slideDidChange());
|
this.swiper.on('slideChangeTransitionEnd', () => NgZone.run(() => this.slideDidChange()));
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue