vguillou / swipe-action

A Polymer element providing a declarative way to swipe DOM elements with configurable underlays and trigger some action when the swiping is done. Integrates seamlessly with the <iron-list> element.
https://vguillou.github.io/webcomponents/swipe-action
MIT License
15 stars 5 forks source link

Right Swipe Issue #2

Open ansarizafar opened 8 years ago

ansarizafar commented 8 years ago

@vguillou I want to use left swipe to open an underlay and right swipe to close it. Is it possible?

vguillou commented 8 years ago

At the moment no, there is no way to swipe back with a gesture. You can only trigger an automatic swipe back animation.

However, if you are interested in developing this feature, you can submit a pull request. That would be greatly appreciated :smiley:

OvermindDL1 commented 7 years ago

This would be useful, allow a swipe-back back to the central point (with perhaps a small variance allows for the other direction) to close the underlay.