function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ 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:

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. 
Goku ZeusGoku Zeus
When it comes to their sensitivity to failure, certain appliance manufacturers have a better reputation than others.