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

In the Navigation, when FreeMode is active, pressing prev returns you to the first slide instead of the previous one. Angular Web Components #7433

Open
6 tasks done
AyuDiego opened this issue Apr 1, 2024 · 1 comment

Comments

@AyuDiego
Copy link

AyuDiego commented Apr 1, 2024

Check that this is really a bug

  • I confirm

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

  • Follow our Code of Conduct
  • Read the docs.
  • 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
@AyuDiego 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
@AyuDiego AyuDiego closed this as not planned Won't fix, can't repro, duplicate, stale Apr 26, 2024
@AyuDiego AyuDiego reopened this Apr 26, 2024
@AyuDiego
Copy link
Author

AyuDiego commented Apr 26, 2024

Can someone add the bug to the Angular label ? @nolimits4web

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

No branches or pull requests

1 participant