You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In my Angular 17.3 application with Swiper 11.1, I have a bug.
So, there should be some way that with freeMode set to true and sticky set to false, after dragging the slides and hitting the navigation prev, it wouldn't return you to the first slide.The bug consists of when you have freeMode: true and you want to drag the slides, and then when you hit the navigation prev, the slide won't go to the previous one from the one you see in the middle, but to the 1st slide regardless of where it is after dragging it. If you put it with the sticky property, it's true that this is solved but it removes the functionality of the slide staying in the place where you release the click.
Expected Behavior
So, there should be some way that with freeMode set to true and sticky set to false, after dragging the slides and hitting the navigation prev, it wouldn't return you to the first slide.
Actual Behavior
The only solution I see is to leave it as sticky, but then the functionality is deactivated when it's not sticky because it doesn't work properly otherwise. I'm not sure if there's any other solution.
Check that there isn't already an issue that request the same feature to avoid creating a duplicate.
Make sure this is a Swiper issue and not a framework-specific issue
Would you like to open a PR for this bug?
I'm willing to open a PR
The text was updated successfully, but these errors were encountered:
AyuDiego
changed the title
In the Navigation, when FreeMode is active, pressing prev returns you to the first slide instead of the previous one.
In the Navigation, when FreeMode is active, pressing prev returns you to the first slide instead of the previous one. Angular Web Components
Apr 26, 2024
Check that this is really a bug
Reproduction link
https://stackblitz.com/~/github.com/AyuDiego/swiper11-bug
Bug description
In my Angular 17.3 application with Swiper 11.1, I have a bug.
So, there should be some way that with freeMode set to true and sticky set to false, after dragging the slides and hitting the navigation prev, it wouldn't return you to the first slide.The bug consists of when you have freeMode: true and you want to drag the slides, and then when you hit the navigation prev, the slide won't go to the previous one from the one you see in the middle, but to the 1st slide regardless of where it is after dragging it. If you put it with the sticky property, it's true that this is solved but it removes the functionality of the slide staying in the place where you release the click.
Expected Behavior
So, there should be some way that with freeMode set to true and sticky set to false, after dragging the slides and hitting the navigation prev, it wouldn't return you to the first slide.
Actual Behavior
The only solution I see is to leave it as sticky, but then the functionality is deactivated when it's not sticky because it doesn't work properly otherwise. I'm not sure if there's any other solution.
Swiper version
11.1
Platform/Target and Browser Versions
Windows 10
Validations
Would you like to open a PR for this bug?
The text was updated successfully, but these errors were encountered: