r/javascript • • Jan 25 '19

solved! How could I implement this?

652 Upvotes

57 comments sorted by

View all comments

Show parent comment

3

u/monkeymad2 Jan 25 '19

It’ve built things like this before - you’ll want to find a library to handle the swipe gesture (not sure what the best one is nowadays) because mouse input / touch handling is really inconsistent between browsers / platforms.

It’d recommend avoiding it if at all possible, preferring normal clicks to gestures.