Coder Social home page Coder Social logo

Comments (5)

jmonster avatar jmonster commented on July 20, 2024

It looks like you got this working? (just viewed it from iOS 5)

from swipe.

Mathbl avatar Mathbl commented on July 20, 2024

Actually, no. On android and chrome (didnt test on iOs) when you enter the slider page, there's only one element to swipe. Then if you change orientation or just go back to menu and return to the slide, it works.

from swipe.

thebird avatar thebird commented on July 20, 2024

Your right on with why it isnt working. jQMobile plays with the DOM and makes the initial measurements Swipe does incorrect. To fix it, all I had to do was run slider3.setup() after the jQMobile ready event.

You can run the setup() function anytime something changes and Swipe needs to recalculate.

from swipe.

ibrent avatar ibrent commented on July 20, 2024

Hmmm, I can't get it working either. Are you saying that all we need to do it call the swipe function after the jQM pageinit like this:

<script> $( '#contentDetail' ).live( 'pageinit',function(event){ window.mySwipe = new Swipe(document.getElementById('slider3')); }); </script>

Does anyone have a working sample online? The pageready, pageinit and pagecreate functions do not work for me as expected.
Thank you.

from swipe.

thebird avatar thebird commented on July 20, 2024

#16 (comment)

from swipe.

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.