Skip to content

Conversation

@lleukkun
Copy link

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 lauri.leukkunen@kajuutta.com

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 <lauri.leukkunen@kajuutta.com>
@lleukkun
Copy link
Author

Any opinions? Without this Lory is quite unusable on mobile for me and isn't that good on desktop either when resizing windows and using "infinite". This is a direct fix for #433 and mitigates #682 so it doesn't result in unusable mobile experience, at least when using infinite.

@andyrue
Copy link

andyrue commented Jul 19, 2017

This fix worked great. Thanks. Hope to see it merged and published to official soon.

@meandmax
Copy link
Collaborator

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);
Copy link
Collaborator

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

@Teun87
Copy link

Teun87 commented Feb 1, 2018

This problem is still present. Please make rewindOnResize work!

@garygreen
Copy link

I'm struggling to understand the whole rewindOnResize option. Why is the slide reset to the first slide when you resize the window? It seems bizzare to even be an option to me. Surely you would expect to remain on the same slide when you resize the window, not jump around. Never seen any other carousel implement such functionality

@silllli
Copy link

silllli commented Aug 21, 2018

@garygreen I am wondering about the same. How do you get rid of this functionality?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants