Comments (6)
@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.
@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.
@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.
@whitecolor I am curious about the outcome of your issue; have you been able to solve it?
from jquerypp.
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.
I have the same issue, very interested in the sollution...
from jquerypp.
Related Issues (20)
- Add check for PhantomJS in drag/core so unit tests can be automated.
- CSS Transition attached to dragging element causes ghost to be messed up
- Trying to select a table throws an error on IE 10
- Migrate to new StealJS
- Some source docs are broken HOT 1
- Drop tolerance HOT 6
- Fix "main" in bower.json
- Support for devices with mouse and touch at once HOT 2
- Add NPM link to docs
- z-index set to 1000 when an element is dragged
- Right-positioned elements jump to the left when dragged in Safari
- DoneJS documentation links are broken
- Window moves underneath the cursor when starting a drag with representative() HOT 1
- jQueryPP.com audit
- Minified 2.0.2 throws error HOT 1
- Add a Press Kit section
- Advertise the community survey on jquerypp.com HOT 1
- Documentation link broken HOT 3
- range.js initialization in IE 8/9
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 jquerypp.