jsTactileScreenEvents – Manage touch events for touch screen web applications

When you develop a touch screen web application, you have many constraints like:
– Disable mousewheel
– Disable scrolling page with finger
– Disable page zoom
– Disable pinch
– Disable right click
– Disbale any touch move
– Disable page highlighting (select all or a part of the page)

Don’t worry, I’ve developped one javascript object that can do it for you all in one, “jsTactileScreenEvents”.

It is very easy to use:

//Instantiate the object
var tactileEvents = new jsTactileScreenEvents();
    
tactileEvents.disable('contextmenu');
tactileEvents.disable('zoom');
tactileEvents.disable('mousewheel');
tactileEvents.disable('touchmove');
tactileEvents.disable('highlight'); //disable text highlighting

Get the code on Github here: https://github.com/edouardkombo/jsTactileScreenEvents
See a live demo here: https://edouardkombo.github.io/jsTactileScreenEvents/demo

Or git it directly from Bower:

bower install js-tactile-screen-events

That’s right, have fun !

Advertisements
jsTactileScreenEvents – Manage touch events for touch screen web applications

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