Hi, I have added a class .swipe to the body of pages that calls custom code to allow the user to swipe between pages. Is it possible to add the class to the body of on Tablet, Mobile landscape and Mobile portrait but not desktop? I want to stop user swiping on desktop with mouse action (eg. selecting text)
One workaround could be duplicate your section/elements and disable the view for desktop/mobile at your convenience?
<script> // Add swipe class to body when width < 960 $('body').toggleClass('swipe', $('body').width() < 960); </script>