Comments (19)
Upon further testing, it appears this issue is isolated to iOS6. I am unable to reproduce in Android or iOS5 devices.
from cycle2.
Yeah, I can't reproduce on Android/Chrome.
from cycle2.
This bug also occurs when using jQuery Mobile for Swipe support. Any idea which side of the equation is responsible for this behavior?
from cycle2.
Unfortunately I don't have an iOS6 device to test with.
from cycle2.
A bit more info discovered while using Safari's dev tools in XCode's iOS Simulator:
If I swipe left, console logs 'cycle-next' and advances slider 1 step (correct behavior)
If I swipe up, then left before the vertical scroll animation completes, console logs 'cycle-next' but does not advance my slider or pager. All subsequent swipes or pager clicks are bugged until I refresh the page.
Edit -- correction -- originally reported that a horizontal swipe combined with a vertical swipe logged an opposite action (cycle-next vs cycle-prev) than a standalone horizontal swipe of the same direction. this is not the case, they both log the correct action, the difference being the horizontal / vertical combined swipe doesn't actually perform the advancement.
from cycle2.
Cycle1 + jSwipe is still functioning as expected on iOS6, so I am considering reverting back to Cycle1... although I'd prefer not to.
EDIT: Cycle 1 + Swipe plugin produces the same glitch when iOS6 registers a scroll swipe while Cycle is animating.
@malsup, Is this something that you intend to look (somehow) in the near future or would you recommend reverting?
best,
Owen
from cycle2.
Yes, I plan to look into this. But in the meantime, doesn't jswipe work with cycle2?
from cycle2.
@malsup, Just tried the Jquery Touchwipe plugin (mixed up the names, didn't mean Jswipe), and it produces the same glitch. I then reverted to Cycle1 + Touchwipe, and I am getting the same exact glitch, unfortunately...
What it seems to be is that if the iOS6 registers a vertical swipe as a scroll while Cycle is still animating, it breaks.
from cycle2.
I can confirm this as well on iOS6 at least.
from cycle2.
I don't have an iOS device to test on so can someone please test this new impl as a replacement for my current swipe plugin?
http://jquery.malsup.com/cycle2/jquery.cycle2.zwipe.js
from cycle2.
I updated the above file and swipe does not seem to work anymore.
from cycle2.
Here's a test page that uses a different swipe impl. Works on Android, how about iOS?
http://malsup.com/jquery/cycle2/demo/swipe2.php
from cycle2.
That page is working for me on iOS6 / iPhone 5
from cycle2.
Just tested it on iOS6 / iPhone 4s and its breaking the same way... I had also tested jQuery mobile and Touchwipe swipe implementations as well, I am afraid it is something mor core to cycle+iOS6, as I also discovered this glitch with cycle1.
from cycle2.
Tested here on iOS6 iPad 2 & iPhone 4s, the example at http://malsup.com/jquery/cycle2/demo/swipe2.php still breaks the same way
from cycle2.
This script fixes the problem if you include it on your page (confirmed by testing).
https://gist.github.com/3798925
Found it via comments on this ticket: http://bugs.jquery.com/ticket/12620
from cycle2.
Added note to swipe demo page: http://jquery.malsup.com/cycle2/demo/swipe.php
from cycle2.
Hi.. I have added the fix.js in my header and issue seems to be fixed. But my images are inside a link (), while clicking the image, its not redirecting. Just showing the loading icon and nothing happens after that. Please need help on this :(
from cycle2.
To make images wrapped in links, you make the > a the slide, not the image.
See 'Anchors' section on this page: http://jquery.malsup.com/cycle2/demo/non-image.php
from cycle2.
Related Issues (20)
- Carousel Offset both sides
- How to avoid validation errors with <div class="cycle-slideshow".... tag HOT 1
- Replace $.trim() with String.prototype.trim() HOT 4
- Limit images loaded
- Неработает HOT 1
- issues with latest wordpress update HOT 7
- Captions and Overlay not displaying
- Embed youtube videos
- Slideshow Not Working
- Slides overlap content HOT 5
- Website is broken HOT 2
- I can't turn off the autoplay
- cycle2 stopped working! HOT 3
- When the page refreshes during screen size changes the carousel disappears HOT 1
- Custom Pager Template does not close parsed string
- Are `cycle-update-view-before/after` events safe to use in production code?
- Cycle2 prev/next function not working for me HOT 3
- [Solution] Add endless slides dynamically
- <div class="cycle-slideshow lightbox" data-cycle-prev="#prev-10606" data-cycle-next="#next-10606" data-cycle-pager="#pager-10606"> <!-- IMAGES --> <div id="prev-10606" class="cycle-prev"></div> <div id="next-10606" class="cycle-prev"></div> <div id="pager-10606" class="cycle-prev"></div> </div>
- hasOwnProperty is not a function using jQuery 4.0.0 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cycle2.