ngx-hm-carousel icon indicating copy to clipboard operation
ngx-hm-carousel copied to clipboard

Moving more than 1 slide at a time

Open dalvarezr opened this issue 5 years ago • 1 comments

I'd like to know if is posible (and how) to move more than one slide at a time. From what I understood from the docs that's what scroll-num is for, but I couldn't make it work.

Since I'm using the carousel with breakpoints, I'd like to know if is it posible to move as many slides as the current break point is showing: example:

breakpoint: NgxHmCarouselBreakPointUp[] = [ // move one slide { width: 360, number: 1 }, // move two slides { width: 500, number: 2 }, // move three slides { width: 768, number: 3 }, ];

I'm using only the previous and next arrows to move between slides. Not using the dots.

dalvarezr avatar May 09 '19 18:05 dalvarezr

Hi, @dalvarezr I can understand what you want.

In the current version, we can't get the breakpoint occur event.

I thinks I will add scrollNum in the NgxHmCarouselBreakPointUp and make that can change scroll-number dynamically.

ZouYouShun avatar May 21 '19 15:05 ZouYouShun