Swipe icon indicating copy to clipboard operation
Swipe copied to clipboard

The auto swiping stops when manually swipe is done check (swipejs.com)

Open rahulmaximus opened this issue 12 years ago • 11 comments

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.

rahulmaximus avatar Aug 11 '13 15:08 rahulmaximus

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;

trose avatar Aug 12 '13 15:08 trose

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,

rahulmaximus avatar Aug 12 '13 17:08 rahulmaximus

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.

trose avatar Aug 12 '13 19:08 trose

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 avatar Aug 21 '13 07:08 divyanshu-das

@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

trose avatar Aug 21 '13 18:08 trose

@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.

divyanshu-das avatar Aug 22 '13 06:08 divyanshu-das

that's odd, I would assume changing the orientation would just be a window.resize() event... I'll see if i can reproduce

trose avatar Aug 22 '13 14:08 trose

Yeah, I can't reproduce on an iPhone 5. I running code from pull request #335

trose avatar Aug 22 '13 15:08 trose

这个项目没人维护了吗?

fiture avatar Apr 14 '15 08:04 fiture

@fiture 因为联系不到作者, 所以我在维护一个独立的版本, 你可以试试 https://github.com/lyfeyaj/swipe, 里面包含一些新功能以及 bug 修复, 希望能帮助到你

lyfeyaj avatar Apr 14 '15 08:04 lyfeyaj

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

jtibbles avatar Jul 12 '18 14:07 jtibbles