Touch Events On A Desktop Browser

Sometimes you would want unify the events in your app and react to only kind of event hierarchy (either touch or mouse events), in such a case you will find yourself in a pickle when you realize that desktop browsers don’t support convenient touch events unlike mobile browsers. So what do you do then? The answer is an extremely small JS library called Touché. Drop this library into your web app and you are good to go. See the github page for more details on how to use it. If you have mobile centric javascript extensions that were intended to work with touch events, they will now work with desktop browsers as well when you use this library.

The page also has a live demo.

Advertisements

One thought on “Touch Events On A Desktop Browser

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s