PolymerElements / iron-swipeable-container

A container that allows any of its nested children to be swiped away.
25 stars 18 forks source link

swipe ALL the things! #2

Closed notwaldorf closed 8 years ago

notwaldorf commented 9 years ago

I ported the old PolymerLabs/swipeable-card to a magical container that makes all its children swipeable. I tried to comment all the magical animation stuff that was really scary -- @frankiefu, would you mind double checking that I didn't tell any lies in _animate?

Features:

valdrinkoshi commented 9 years ago

@notwaldorf any chance for this to be a behavior? It will be handy for other elements like paper-toast

notwaldorf commented 9 years ago

@valdrinkoshi this would have to be in addition to, not instead of, the current implementation. If it's a behaviour, then only things that have implemented the behaviour can be swiped, which is a bit lame. Alternatively, you can have all of the toasts that can appear on a given page live inside a swipeable container, which would make them swipeable. That's actually more what you're looking for, if I think about it more

notwaldorf commented 9 years ago

@cdata paging for review!

cdata commented 8 years ago

This LGTM :+1: nice work!