| Issue 25: | page not scrolling if touchStart is within the iscroll area |
‹ Prev
10 of 10
|
| 2 people starred this issue and may be notified of changes. | Back to list |
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
Nov 15, 2010
Well done, good stuff. @lucas_ds
Mar 4, 2011
Nice WORK MAN!!
Aug 13, 2011
In iScroll 4, this problem can be avoided by setting the onBeforeScrollStart property to null when creating the iScroll object. |
Owner: matt3o