laviastar / iscroll-js

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

page not scrolling if touchStart is within the iscroll area #25

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. create a page that will require scrolling
2. use a fixed width/height iscroll area
3. if your finger is within the iscroll area on touch start you cannot scroll 
up or down

What is the expected output? What do you see instead?
I would expect to see the page scroll, it does not.

What version of the product are you using? On what operating system?
This is on the latest iscroll I have tested in only on iOS 4 in the iphone sim

Please provide any additional information below.
I did find a fix for this by commenting out the e.preventDefault(); on the 
touchStart function around line 220. Perhaps a disableTouchEvents option 
(defaulting to true) would be a good solution to it.

Here is a demo of the original iscroll you cannot scroll this page if you first 
touch in the iscroll area. 
http://dev.patrickarlt.com/iscroll/examples/originalcarousel/

this is a demo using a modified version of iscroll that i made, You can now 
scroll the page up and down even if you start the scroll gesture in the iscroll 
area. http://dev.patrickarlt.com/iscroll/examples/originalcarousel/

i have attached the modified js file I made to this issue my changes are on 
lines 38, 217-220, and 269-271

Original issue reported on code.google.com by patrick....@gmail.com on 2 Sep 2010 at 6:31

Attachments:

GoogleCodeExporter commented 9 years ago
One may need a carousel with vertical scroll. The solution for your specific 
problem is good, thanks for sharing, but this is not actually an iscroll issue, 
more like a customization you needed.

Original comment by mat...@gmail.com on 2 Sep 2010 at 6:45

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
Well done, good stuff. @lucas_ds

Original comment by ldsilic...@gmail.com on 16 Nov 2010 at 3:36

GoogleCodeExporter commented 9 years ago
Nice WORK MAN!!

Original comment by jpre...@msn.com on 4 Mar 2011 at 6:58

GoogleCodeExporter commented 9 years ago
In iScroll 4, this problem can be avoided by setting the onBeforeScrollStart 
property to null when creating the iScroll object.

Original comment by brampton on 13 Aug 2011 at 9:01