Quantcast
Channel: Ionic Forum - Latest topics
Viewing all articles
Browse latest Browse all 71531

Prepend slides to ion-slides

$
0
0

@HinderiksR wrote:

Hi,

I’m trying to prepend a couple of slides to my current slide. However this results in a popping to the new slide. I suspect this comes from the fact that the current slide is for example at index 0 in the array and appending 2 items would cause the current slide to be at index 2 but it would still show the slide at index 0. I would like this to become index 2 without any flickering or crazy timeouts.

At the moment i’ve tried moving the slide to a new index (this.slides.slideTo(newIndex, 0) but this does nothing unless i put a timeout of 1s around it (which makes it pop first and then got to the right slide)

If anyone has any ideas that would be great,

With best regards,
Robin

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 71531

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>