Reputation:
I've got a drawer div that comes out from the right on click. I want it to close when it gets swiped to the right and I've tried using the jQuery swiperight event but it doesn't seem to do anything.
Upvotes: 0
Views: 1278
Reputation: 191
Are you loading a version of jQuery mobile on your page?
I think the 'swiperight'
event is from jQuery mobile.
Try adding it to your list of scripts.
<script src="https://code.jquery.com/mobile/1.4.5/jquery.mobile-1.4.5.min.js"></script>
https://api.jquerymobile.com/swiperight/
Upvotes: 1