Giter Club home page Giter Club logo

Comments (6)

mickmcgrath13 avatar mickmcgrath13 commented on July 29, 2024

@whitecolor Could you give more context to the issue you're experiencing (iScroll options you've set, etc)?

I've created a jsbin, and jQuery++ / iScroll are behaving as expected: http://jsbin.com/nerari/edit?html,js,output

from jquerypp.

wclr avatar wclr commented on July 29, 2024

@mickmcgrath13 sorry I forgot to mention that it doesn't work on touch devices, its ok on destop right.
http://jsbin.com/lilehonoto/edit?html,js,output

from jquerypp.

mickmcgrath13 avatar mickmcgrath13 commented on July 29, 2024

@whitecolor I ran the following bin's output on my mobile device, and it worked as expected (http://output.jsbin.com/nerari/14).

Further, I noticed that in the bin you provided, there is a span with an id of "drag" inside the div with an id of "innerDrag", and they both have jQuery++ drag events tied to them. However, even with this setup, jQuery++ and iScroll are behaving as expected (on touch devices, too).

Perhaps more context to the issue you're experiencing (the code you're using with iScroll options you've set, what you expected to happen, etc) would help in understanding the problem.

from jquerypp.

mickmcgrath13 avatar mickmcgrath13 commented on July 29, 2024

@whitecolor I am curious about the outcome of your issue; have you been able to solve it?

from jquerypp.

wclr avatar wclr commented on July 29, 2024

The problem It doen't work with this:

    $(document).on('touchmove', function(ev){
        ev.preventDefault()
    });

This is needed to prevent bouncing scrolling on thouch devices (for entire app).

Preventing default on touchstart event can not be used because it prevents click events on android.

So not sure what to do with that, any Ideas?

from jquerypp.

DreamEmulator avatar DreamEmulator commented on July 29, 2024

I have the same issue, very interested in the sollution...

from jquerypp.

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.