-
Notifications
You must be signed in to change notification settings - Fork 13.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
bug: Overflow scroll not working in Beta 12 #2201
Comments
Some more info can be found here With a live demo here Could be related to 84b5e91 ? |
I don't think so, @mhartington , I was the one who suggested the patch at 84b5e91 and I have that code applied to my app since long ago, with no bad side effects. So, considering that this commit has been in my code since before beta.12, I conclude it's not the one to blame entirely. Unfortunately I can't spend time on this right now to give you more info, but I may have by the end of this week. |
I'm almost sure though (with no proofs so far) that this is related to the changes on disabling events on some layers created by ionic in the DOM, as is the |
Could we isolate the issue a bit more? I'm not having a problem in this codepen http://codepen.io/perrygovier/full/iKgIj/ |
Just some more informations scroll is working in this codepen http://codepen.io/anon/pen/bfdqI |
Right, I'm still having trouble isolating the problem. Is anyone able to see what mix of components or code structure creates the problem? I'd normally say it's something in your specific project, and not really Ionic, but seeing as there's a few of you now... I'm not so sure. |
@perrygovier I though the same until I came on this issue and saw I had the same exact problem ( can scroll with two fingers, cannot with one). |
Don't know if this will help you track this down, but if I comment out the enable_detect = true; on line 719 of ionic.js scrolling will come back. I didn't trace the code far enough up the chain to see exactly how this could be a real fix though. I'm sure this would cause all types of other problems, but our site (which is pretty heavy) didn't seem to have any significant issues in a VERY quick look I took.
|
I have the same issue and found that is when I use ion-content inside a ion-side-menu-content. |
My whole structure is: ion-side-menus -> ion-side-menu-content -> ion-nav-view -> ion-view -> ion-content |
My structure is almost always the same as the one mentioned by @luis-castillo, so that would justify overflow-scroll not working on my side too. |
Still working on this. Just wanted to leave this codepen here since it's what I'm testing against. |
We are also having this issue in some projects. Our structure is the same as @luis-castillo : The codepen given by @perrygovier has the same issue on my nexus5. Works sometimes with 1 finger, but the scroll eventually stops working and needs to be done with two fingers |
+1, with same structure, on nexus 5 too. |
Same thing as @luis-castillo. Scroll with 2 fingers is working. |
Same thing as @luis-castillo for me too, on Galaxy S 4 |
Hello, |
Any update on this?? This is not a small issue as ionic's scrolling experience( at least on android 4.4 and modern device ) is poor. Need to be able to use native scrolling. |
Better HACK. The ionSideMenuContent directive is blocking the propagation of y-scroll events. Not sure why this is the case and I have not tested it across devices HOWEVER...given that there has been no response on this issue. If you are having this scroll issue when using side menus. Commenting out the prevention of event propagation will enable 1 finger scrolling once again. For ionic.bundle.js comment the following line: function onDragY(e) { Ionic folks...if you know why this code it there to begin with and what scenario it is preventing issues then it would be nice to fix it so it works with android w/sideMenus. |
@emgould Nice thanks! I haven't checked with your hack, but the one from @shiftynick was actually breaking at least a couple of other gestures (like the long tap if I remember correctly). Hopefully yours won't break anything. |
Nice fix by @emgould but break the scroll on my app sometimes. Here is how to do reproduce this: On your scrolling page, access another ion-content base view (without scroll) by clicking a button. Then go back by using the "back button". Scroll doesn't work anymore unless your are making a right or left gesture (to display the sidemenu). Ionic team: please take a serious look at this thing. This bug is so annoying and break so much thing on just a regular app. |
Fixed in 622667b |
@perrygovier , thank you very much for this, really. Is there any ETA on beta.14? Looking foward to finally upgrading. |
Ionic, being so magical, has punctuality similar to that of wizards. |
You will never be able to output a response as good as that again. |
@perrygovier ❤️ |
@perrygovier best. reply. ever. :) P.S: thanks for the fix 😄 |
... In my testing this does indeed restore single finger vertical scrolling, but it disables the swipe gesture that slides the side menu out... Am I a moron and didn't implement this one character fix properly?... probably ;) UPDATE: I think this is another issue specific to my implementation of sidemenu combined with updating from library to library to library. I will update when I get my head around this :) UPDATE 2: Yes, this fix is breaking the sliding out of the side menu on a left to right swipe gesture... |
Does anyone else have the above side effect of the fix? |
Can you provide a codepen that reproduces the issue in a new ticket? I'm unable to reproduce this with a basic example http://codepen.io/perrygovier/pen/veJwi |
Here is the easiest way to reproduce this issue: Create new app via:
Modify "PlaylistsCtrl" Controller to ensure vertical scrolling:
Set overflow-scroll to true in playlists.html: Apply above fix to line 43582 of ionic.bundle.js (v1.0.0-beta.13):
Add Android as a platform:
Launch app on device:
Result, vertical scrolling is enabled, but now the side menu does not slide out on a device (tested on Android). @perrygovier, do you still want me to create a new issue for this? |
Yes, I do ! 2014-11-04 16:34 GMT+01:00 nokturnal notifications@github.com:
|
Thanks for the issue! This issue is being locked to prevent comments that are not relevant to the original issue. If this is still an issue with the latest version of Ionic, please create a new issue and ensure the template is fully filled out. |
Hello,
I just updated to ionic Beta 12 but now the overflow-scroll="true" of ion-content has stopped working.
The native scrolling will not work unless I "scroll" with two fingers. I can no longer scroll with just one finger as I used to.
Any ion-content list with the overflow-scroll="true" property will stop working
Thanks in advance
The text was updated successfully, but these errors were encountered: