-
Notifications
You must be signed in to change notification settings - Fork 241
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
Fix rewindOnResize reset for infinite #680
base: master
Are you sure you want to change the base?
Conversation
Default behaviour is to reset, but when rewindOnResize = false, we stick to the current slide. Also cleaned up the index handling for infinite. Signed-off-by: Lauri Leukkunen <[email protected]>
This fix worked great. Thanks. Hope to see it merged and published to official soon. |
Thank you very much vor contributing! Please align your commits to https://github.com/angular/angular.js/blob/master/CONTRIBUTING.md#commit, otherwise semantic release doesnt know what to do. |
translate(slides[index + infinite].offsetLeft * -1, 0, null); | ||
|
||
index = index + infinite; | ||
translate(slides[index].offsetLeft * -1, 0, null); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Breaks sliders with multiple slides to scroll because you translate to the wrong slide if you hardly set this to 1
This problem is still present. Please make rewindOnResize work! |
I'm struggling to understand the whole |
@garygreen I am wondering about the same. How do you get rid of this functionality? |
Default behaviour is to reset, but when rewindOnResize = false,
we stick to the current slide. Also cleaned up the index
handling for infinite.
Signed-off-by: Lauri Leukkunen [email protected]