Neverending Puppy Marathon
    Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org »

    faketouchespublic

    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 
    })

    install

    npm i faketouches

    Downloadsweekly downloads

    2

    version

    0.0.5

    license

    none

    repository

    github.com

    last publish

    collaborators

    • avatar
    • avatar