+ Start a Discussion
Ashutosh AwasthiAshutosh Awasthi 

How to implement left and right swipe functionality using lightening framework?

Currently I m using next and previous arrow buttons on click of which i call my javascript function. I want to call this function on left and right swipe event. Can somebody suggest a way to capture the left and right swipe on my component?
James LoghryJames Loghry
During Dreamforce this year, they demo'ed a really nifty Real Estate app that mimmicked "Tindr" functionality of swiping left / right with lightning components (note it's not lightening ;)).  The demo can be found here: https://developer.salesforce.com/blogs/developer-relations/2015/06/creating-simple-real-estate-app-lightning-components.html

Hope that helps.
Ashutosh AwasthiAshutosh Awasthi
Thanks James,

The example suggested uses an open source range slider, I can use that to implement slider. I will look into this to see how i can use this in my app. But what i am actually looking for is a way to capture left/right swipe event and perform a certain action. Please share if you come across any such similar app.
btw typo is noted (was hoping no one would notice :( )....  
Varun Vyas 10Varun Vyas 10
@Ashutosh did you find any way of implementing swipe feature in lightning? I tried with hammer.js but event binding to appropriate callback especially after DOM elements are rendered is not happening. Any one who tried the gestures of left swipe and right swipe please let me know how this is possible with lightning. Thanks.