Coder Social home page Coder Social logo

Issue with swipe gestures in iOS6 about cycle2 HOT 19 CLOSED

malsup avatar malsup commented on September 27, 2024
Issue with swipe gestures in iOS6

from cycle2.

Comments (19)

davidrhansen avatar davidrhansen commented on September 27, 2024

Upon further testing, it appears this issue is isolated to iOS6. I am unable to reproduce in Android or iOS5 devices.

from cycle2.

malsup avatar malsup commented on September 27, 2024

Yeah, I can't reproduce on Android/Chrome.

from cycle2.

owenhoskins avatar owenhoskins commented on September 27, 2024

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.

malsup avatar malsup commented on September 27, 2024

Unfortunately I don't have an iOS6 device to test with.

from cycle2.

davidrhansen avatar davidrhansen commented on September 27, 2024

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.

owenhoskins avatar owenhoskins commented on September 27, 2024

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.

malsup avatar malsup commented on September 27, 2024

Yes, I plan to look into this. But in the meantime, doesn't jswipe work with cycle2?

from cycle2.

owenhoskins avatar owenhoskins commented on September 27, 2024

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

newelement avatar newelement commented on September 27, 2024

I can confirm this as well on iOS6 at least.

from cycle2.

malsup avatar malsup commented on September 27, 2024

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.

newelement avatar newelement commented on September 27, 2024

I updated the above file and swipe does not seem to work anymore.

from cycle2.

malsup avatar malsup commented on September 27, 2024

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.

newelement avatar newelement commented on September 27, 2024

That page is working for me on iOS6 / iPhone 5

from cycle2.

owenhoskins avatar owenhoskins commented on September 27, 2024

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.

davidrhansen avatar davidrhansen commented on September 27, 2024

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.

malsup avatar malsup commented on September 27, 2024

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.

malsup avatar malsup commented on September 27, 2024

Added note to swipe demo page: http://jquery.malsup.com/cycle2/demo/swipe.php

from cycle2.

sarathrajan avatar sarathrajan commented on September 27, 2024

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.

dejami-jphillips avatar dejami-jphillips commented on September 27, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.