Swipe
Swipe copied to clipboard
The auto swiping stops when manually swipe is done check (swipejs.com)
HI,
I tried auto slide effect on swipe.js . But when I tried using the developer tools(Emulate touch events) on chrome and did a swipe on the moving slider, it stopped and it did not auto slide after that.
I'm working on a fix for this. I found a hacky way to fix it but I'd like to see if there is a root cause.
If you need a quick fix, put this line at the end of the end function:
delay = options.auto || 0;
Hi, I tried to do a small tweak of my own which worked!!. I set the property auto:0; and used something like this in my code setInterval(function() { window.mySwipe3.next(); }, 4000);
which does not stop even if we use the touch event,
Unfortunately that solution will still scroll if the user swipes and maintains a touch interaction for > 4 sec. I would classify that as a bad user experience. I have a patch that will fix this issue. I'll be posting it shortly.
Slideshow does not resume after using slide() API also. I added:-
delay = options.auto || 0
at the end of end() and slide() API function also.
@divyanshu-das I added the delay = options.auto || 0 line to the transitionEnd callback in my pull request so now any action should resume properly
@trose89 thanks for the tip. I am getting a new bug now. When I change the orientation on iphone, slider stops working. While it works like a charm on ipad and web.
that's odd, I would assume changing the orientation would just be a window.resize() event... I'll see if i can reproduce
Yeah, I can't reproduce on an iPhone 5. I running code from pull request #335
这个项目没人维护了吗?
@fiture 因为联系不到作者, 所以我在维护一个独立的版本, 你可以试试 https://github.com/lyfeyaj/swipe, 里面包含一些新功能以及 bug 修复, 希望能帮助到你
I'm working on a fix for this. I found a hacky way to fix it but I'd like to see if there is a root cause. If you need a quick fix, put this line at the end of the end function: delay = options.auto || 0;
...Where is the end function?
many thanks