Vandzelyak / iscroll-js

Automatically exported from code.google.com/p/iscroll-js
MIT License
0 stars 0 forks source link

slide to next page doesn't work (jqtouch) #45

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago

What steps will reproduce the problem?
1. click on the link
2. slide to the next page
3. slide doesn't work (with iphone sdk simulator, but the slide works with 
safari)

What is the expected output? What do you see instead?
 i see no slide, no next page

What version of the product are you using? On what operating system?
- iscroll 3.7.1
- jqtouch
- simulator 3.0
- Xcode 3.1.3

Please provide any additional information below.

the link works with safari but not with the simulator.
when i delete "<script type="text/javascript" 
src="iscroll.js?v3.7.1"></script>" the slide works with the simulator but not 
the scroll. maybe iscroll and jqtouch are not compatible or i made a big 
mistake ;) i don't know.

Original issue reported on code.google.com by schra...@googlemail.com on 19 Jan 2011 at 6:57

Attachments:

GoogleCodeExporter commented 8 years ago
to function: "touchStart: function(e)" line ~ 219 add:

// Do not scroll if link clicked
if(e.target.parentNode.nodeName == 'A')
    return;

Original comment by cb...@yahoo.com on 24 Jan 2011 at 8:29

GoogleCodeExporter commented 8 years ago
This was a life saver.  Only thing I had to change (since my links were 
contained in a table) was:

if(e.target.parentNode.nodeName == 'TD')
    return;

That's because scrolling recognised the TR element, but tapping on the link 
recognised the TD element.  Hope this helps someone.

Original comment by jonat...@demomedia.co.uk on 23 Nov 2011 at 3:15