Implement -webkit-sticky in list view
A new CSS position value recently came to CSS: -webkit-sticky. An element with position: -webkit-sticky will become like an element with position: fixed when it is scrolled to a given value from the top of the viewport. See a description and demo here.
Maybe an optional class that one could apply to a parent div around a list section? What do you think?
Interesting.. alas -sticky is an experimental feature on Chrome not enabled by default. There is a polyfill implementation https://github.com/filamentgroup/fixed-sticky but it wouldn't work out of the box.
Does Ionic have a plan for a plug-in architecture?
I know that -sticky works on iOS 6+, which is what Ionic supports to begin with, at least on the iOS-side.
What's cool about -sticky is that it works even when Javascript execution is paused, which is what happens on iOS during native webkit scrolling. Combining it with a polyfill like the one you pointed out would enable compatibility across all devices.
As an alternative to a CSS class, what about an option in the angular <list></list> directive?
+1 for this feature request
This would be a nice addition. We will discuss adding it!
On Friday, December 6, 2013, seanmthompson wrote:
+1 for this feature request
— Reply to this email directly or view it on GitHubhttps://github.com/driftyco/ionic/issues/268#issuecomment-30022262 .
Ben Sperry
Co-founder & CEO, Drifty
Email [email protected]
Twitter @helloimben
Skype ben.sperry
+1, was just thinking about this yesterday. Refer to current Facebook More menu, they have a similar UI concept there.
+1
Any progress on this @ajoslin @adamdbradley ?
Andy made some progress on this, it's getting close!
Closing for #1025
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.