Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Moving more than 1 slide at a time #22

Open
dalvarezr opened this issue May 9, 2019 · 1 comment
Open

Moving more than 1 slide at a time #22

dalvarezr opened this issue May 9, 2019 · 1 comment
Labels

Comments

@dalvarezr
Copy link

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.

@ZouYouShun
Copy link
Owner

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants