-
Notifications
You must be signed in to change notification settings - Fork 44
very simple native scrolling div? #104
Comments
I guess the question is around if there's a way to mix the modes a bit better using famous' own (still undocumented?)
perhaps applying
http://famous-appmode.meteor.com/story/1 click stories to get to that view. if we could include famous in a normal web app and not break everything else it would make it much easier to use in a project. |
Hi, I completely agree on this topic. I've had the idea of "native scrolling" in my mind for quite some time for now. Nothing beats native scrolling performance, even how hard we try in the Javascript world, I think.. |
Btw, in your demo, the reason that it is sometimes not scrolling, is that there is another famous-div on top of it sometimes, capturing input events. Most of the time that famous surface is before the scrolling div in the DOM, but sometimes it is after the scrolling div. I'm not sure what that surface does, it doesn't have any styles or classes applied to it. Possibly you are laying out both those surfaces are not setting the z-translation on them, causing the DOM ordering to become relevant (and famo.us doesn't guarantee the ordering in the DOM). Also, when I view the demo in Phone emulation mode in Chrome, the header and footer disappear. Not sure why that is. |
thanks for the tip on the layers. OK i cleaned that up ( Transform.inFront stuff)
I think the appMode setting has to be set when the engine is created, so here are two versions http://ff-appmode-false.meteor.com/stories btw the source is also here |
the CSS (stylus) on that div looks like:
because of some other notes around -webkit-overflow-scrolling http://engineering.bergcloud.com/2013/06/android-chrome-and-webkit-overflow-scrolling-touch/ interestingly, in safari the footer doesn't seem to get messed up. but like i said i think we can workaround that but adding extra "cropping" layers may affect performance. |
I tried rendering the app into a container
and it changes much of the z-ordering. probably just hilighting problems in the app itself... but it does fix the tab bar dragging problem. |
OK I got this basically working by starting the famous engine inside a container div however, the flex-view is triggering the "pull to reload" whenever I try and scroll down. http://moflow.meteor.com/story/1 new repo |
famous-flex has some awesome sophisticated features, but I was wondering if you would add just a simple div with native scrolling, ie using
overflow: scroll
for simple html content the performance of this really can't be beaten. ff is a huge improvement over famous' internal scrollviews but it still feels a bit chuggy even with simple content on a high-end (android) phone.
Framework7 page explains this well
http://www.idangero.us/framework7/#.VVkR4ZP2DdQ
Native Scrolling
It can sound even curious but one of the most important Framework7 feature is that it uses only native scrolling. Moreover - it multiplies its advantages! So you can still have this awesome scrolling with momentum and resistance bounce without any scrolling issues!
Ionic is also doing this afaik at least on android.
I did try just dropping in a div but famous CSS and other "features" always seem to take over such that it breaks normal browser behavior.
The text was updated successfully, but these errors were encountered: