faketouches

    0.0.5 • Public • Published

    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

    1

    Version

    0.0.5

    License

    none

    Last publish

    Collaborators

    • arschmitz
    • jtangelder