Frankie Fu
Frankie Fu
The work is in the 'amp' branch: https://github.com/Polymer/news/tree/amp And the AMP version of the News app: https://polymer-news-amp.appspot.com Check out the docs here: https://news-docs.polymer-project.org/docs/case-study.html#amp-version-of-the-news-app
We updated Pesto template in app-layout with replacement code here: https://github.com/PolymerElements/app-layout/blob/master/templates/pesto/src/recipe-app.html#L234-L250 One caution is that works specifically for that template. But the idea of how one can store/retrieve scroll position...
I'd suggest to take a look at [app-layout](https://www.webcomponents.org/element/PolymerElements/app-layout). The `app-drawer` element in `app-layout` has momentum swiping and works well on all platforms. Here is one of the demo: https://www.webcomponents.org/element/PolymerElements/app-layout/demo/app-drawer/demo/left-drawer.html
@keanulee is working on getting this fixed in app-layout (https://github.com/PolymerLabs/app-layout/issues/51)
@ebidel, yeah we were just talking about this earlier today. @keanulee mentioned it should be pretty straight forward to port the change over. I'd suggest to also consider using [app-layout](https://github.com/PolymerLabs/app-layout)....
There are already a few production sites that I know which are using app-layout elements: [Chrome Dev Summit](https://developer.chrome.com/devsummit), [Polymer Polytechnic](https://itshackademic.com/), and of course [Polymer Summit](https://www.polymer-project.org/summit). `paper-drawer-panel` and its counterparts have...
As a workaround you could do something like this in `paper-drawer-panel`. http://jsbin.com/lunixiholu/edit?html,output
This is because `setScrollDirection` in Polymer is not working: https://github.com/Polymer/polymer/issues/3667
@rkief Thanks for the example. @PaulHMason The example by @rkief should be good for you use case.