Skip to content

jtangelder/faketouches.js

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

34 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

faketouches.js

Library to send fake touchevents. Used for testing Hammer.js 1.x.

Its successor is available here: https://github.com/hammerjs/simulator

Usage

Fake a tap on the screen

var faker = new FakeTouches(element);
faker.setTouchType(FakeTouches.POINTER_TOUCH_EVENTS);

faker.setTouches([[100,100]]);
faker.triggerStart();
faker.triggerEnd();

Fake a gesture

faker.triggerGesture('Drag', function(){ 
	//callback
})

About

Library to send fake touchevents. Used for testing Hammer.js

Resources

License

Stars

Watchers

Forks

Packages

No packages published