question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

touchReleaseOnEdges not work

See original GitHub issue

This is a (multiple allowed): [x] bug

Swiper Version: 3.4.1 Platform/Target and Browser Versions: ios safari newest version.

touchReleaseOnEdges not work

i think this code in ‘swiper.js’ cause the problem:

                if (!s.isHorizontal()) {
                    // Vertical
                    if (
                        (s.touches.currentY < s.touches.startY && s.translate <= s.maxTranslate()) ||
                        (s.touches.currentY > s.touches.startY && s.translate >= s.minTranslate())
                        ) {
                        return;
                    }
                }

i think this code (s.touches.currentY < s.touches.startY && s.translate <= s.maxTranslate()) should be (s.touches.currentY < s.touches.startY && s.translate >= s.maxTranslate())

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Reactions:1
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
kemalk89commented, Mar 3, 2017

I have the same problem on safari and on ios device / simulator. (In Chrome it works)

0reactions
lock[bot]commented, Jun 25, 2018

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

Read more comments on GitHub >

github_iconTop Results From Across the Web

touchReleaseOnEdges isn't working on iOS devices #2359
Hello, I'm using Swiper for a project. Everything is good except touchReleaseOnEdges parameter. When a user reach end of slider, swiper must ...
Read more >
Developers - touchReleaseOnEdges not work - - Bountysource
Platform/Target and Browser Versions: ios safari newest version. touchReleaseOnEdges not work. i think this code in 'swiper.js' cause the problem: if (!s.
Read more >
Release on Edges Scroll is not smooth - Stack Overflow
1 -> Main problem happened when i was working with version 5.3.1, when reaching the first or last slide, it scrolled too suddently,...
Read more >
Swiper API
Swiper is the most modern free mobile touch slider with hardware accelerated transitions and amazing native behavior.
Read more >
www.centrodememoriahistorica.gov.co/micrositios/ga...
... 2017 * Fixed issue with not working correctly `touchReleaseOnEdges` on iOS * Fixed issue with not working allowSlideNext/Prev change on Breakpoints ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found