GeoloeG / iron-swipeable-pages

[Polymer 1.x] Element that enables switching between different pages by swiping gesture.
MIT License
49 stars 25 forks source link

not preserving scroll amount when switching URLs #48

Open bhinderbaljeet opened 7 years ago

bhinderbaljeet commented 7 years ago

Hi I have used iron-swipeable-pages in my app everything works fine but I am having a problem.

swipe pages are at url : http://localhost:5000/#/home (which is a long list of paper cards.)

when I go to another url

e.g: http://localhost:5000/#/cards/1

and come back the page takes me to the first card instead of preserving the scroll amount of home page. if I render my cards without swipe component scroll amount is preserved. any idea about how can I fix? Thanks

myfrom commented 7 years ago

Maybe this could help you: https://beta.webcomponents.org/element/PolymerElements/app-layout/app-scrollpos-control

MeTaNoV commented 7 years ago

@Witus13 sadly, app-scrollpos-control is going to disappear in 2.0, I'll investigate an implementation based on a behavior