The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums JavaScript Swipe detection library that doesn’t interfere with text selection

  • This topic is empty.
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
  • #39877

    Does anyone know of a javascript library that will let me bind a function to left/right touch swipes on the whole body, WITHOUT stopping text select from working? I’ve tried hammer.js and touchy.js and both stopped text selection from working, which won’t work for me. Is this even possible?


    I had this issue today and thought I’d update the answer because I found that hammer.js has solved it on their tips page.

    Just use the following to remove the default, or add it specifically in your options when initialising Hammer.

    delete Hammer.defaults.cssProps.userSelect;
Viewing 2 posts - 1 through 2 (of 2 total)
  • The forum ‘JavaScript’ is closed to new topics and replies.