Skip to content

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

License

Notifications You must be signed in to change notification settings

tstaehli/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.

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

Languages

  • JavaScript 100.0%