Skip to content

jQuery Shim: Potential queueing issues on iOS6.x.x #208

Closed
@scalvert

Description

@scalvert

Hey Julian,

I'm encountering a particularly nasty issue in iOS6. We're using filament group's fast tap implementation to remove the 300ms tap delay on devices. On iOS6, I seem to be able to get my code into a state where the inprogress sentinel is not set.

Putting a console.log statement around line 2785 shows that the value of $.queue(element)[0] !== "inprogress" is false. This means that the animations don't get fired, and my code breaks (no subsequent taps/clicks work).

Any thoughts on what could be causing this? We're using zepto + shim, so perhaps it's the shim's $.queue implementation?

It works on iOS7 with Zepto. If I swap to using jQuery (no shim) it works perfectly every single time on iOS6.

Swapping it back to Zepto + shim and following the exact same steps, I can get it to break every single time. I narrowed it down to that line of code where the queue is simply not returning the inprogress sentinel.

The steps to reproduce are:

  1. git clone https://github.com/mobify/bellows.git
  2. git checkout bellows-2.0
  3. grunt serve
  4. Open mobile safari on iOS6 and go to http://localhost:3000/examples/default.html
  5. Perform the following actions, in this order
    • click to close the first header
    • click to open the second header
    • click to open the first header
    • click to close the first header
    • click to attempt to open the second header (breaks - no animation fires)

You need to perform the steps above fast enough for it to break, but once you do it once it's simple to reproduce.

Sorry I couldn't give you a more stripped down example. Let me know if you need me to try anything else.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions