Giter VIP home page Giter VIP logo

handjs's Introduction

Hand.js

Hand.js is now discontinued in favor of jQuery PEP: https://github.com/jquery/PEP

Motivation

Starting in September 2012, Microsoft proposed a specification for unifying touch, pen and mouse events called pointer events.

Modern browsers are not yet all supporting it right. Only Internet Explorer 10+ and Microsoft Edge support it.

Hand.js is a polyfill that will allow you to write your code about touch only once even if the browser does not support pointer events.

Write once, use it everywhere! Don't bother with mouse and touch events. Pointer events are here for you.

You can find a test page right here: http://www.catuhe.com/msdn/handjs/index.html

Install

You can use npm install handjs or bower install handjs to install it locally

Features

Hand.js supports the following;

  • Works on IE9+, Chrome, Firefox, Opera, Safari
  • Support for:
  • pointerdown
  • pointermove
  • pointerup
  • pointercancel
  • pointerenter
  • pointerleave
  • pointerout
  • pointerover
  • Fallback to mouse
  • CSS analysis to support touch-action:none (can be disabled with HANDJS.doNotProcessCSS = true; )
  • Seamless integration into your pages

You can also find a complete blog about hand.js: http://blogs.msdn.com/b/eternalcoding/archive/2013/01/16/hand-js-a-polyfill-for-supporting-pointer-events-on-every-browser.aspx

Another article about pointer events and hand.js: http://blogs.msdn.com/b/davrous/archive/2013/02/20/handling-touch-in-your-html5-apps-thanks-to-the-pointer-events-of-ie10-and-windows-8.aspx

handjs's People

Contributors

deltakosh avatar f2x avatar palmer-jc avatar saschanaz avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.