Join the social network of Tech Nerds, increase skill rank, get work, manage projects...
 
  • How to recognize touch events for DOM elements

    • 0
    • 1
    • 1
    • 1
    • 0
    • 0
    • 0
    • 0
    • 94
    Comment on it

    Hammer.js is a open-source library used for identifying touch gesture, mouse events and pointer Events. It is a standalone library .

    link for downloading library http://hammerjs.github.io/dist/hammer.min.js

    Below is the code snippet to use the hammer.js just create an instance of hammer and include the hammer.js library

    var hammertime = new Hammer(myElement, myOptions); hammertime.on('pan', function(ev) { console.log(ev); });

 0 Comment(s)

Sign In
                           OR                           
                           OR                           
Register

Sign up using

                           OR                           
Forgot Password
Fill out the form below and instructions to reset your password will be emailed to you:
Reset Password
Fill out the form below and reset your password: