Ionic onSlideChanged events delay

时光毁灭记忆、已成空白 提交于 2019-12-11 17:34:29

问题


I am using the ion-slides, and I get some events via:

(ionSlideDidChange)="onSlideChanged()"

I use this function to get the last slide:

onSlideChanged() {
this.lastSlide = this.slider.isEnd();
}

Than I use this.lastSlide in another directive [hidden] to show or hide some stuff in the next slide.

However there is a slight delay right after the next slide is shown, so after 1 second or less than one second the content is hidden as soon as slider reach to this last slide.

I have tried to use (ionSlideWillChange) instead (ionSlideDidChange) but I it has a delay still.

来源:https://stackoverflow.com/questions/46311004/ionic-onslidechanged-events-delay

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!