jQuery Event Binding Switch

| Comments

If you are building applications which are used on pointer and on touch devices then you are familiar with the situation that event handling can slightly differ on these device groups. So in my case. I provide the same UI to all device groups (okay with some media queries sugar…) though I provide a different interaction model to them. E.g. in some cases elements are reacting with doubleclick on pointer devices and with taphold on touch devices. To avoid unnecessary binding (e.g. swipe doesn’t make a lot of sense with a mouse) I created a simple finger/pointer switch for jQuery.

fingerpointer wraps the the jQuery event method on/off and provides finger/pointer event binding for less painful user interaction.

Copyright © 2014 - Damien Antipa. Powered by Octopress