1.0.0 • Published 8 years ago

simulate-touch v1.0.0

Weekly downloads
3
License
BSD
Repository
github
Last release
8 years ago

simulate-touch

Fire touch events when corresponding mouse events fire.

  • mousedown -> touchstart
  • mousemove -> touchmove
  • mouseup -> touchend

Install

$ npm install simulate-touch

Usage

var simulateTouch = require('simulate-touch')

simulateTouch(document.body)

document.body.addEventListener('touchstart', function () {
  console.log('touch start')
})

document.body.dispatchEvent([mousedown event])
// touch started

See test.js for more info.

1.0.0

8 years ago

0.0.1-security

8 years ago

2.0.0

8 years ago

0.0.4

9 years ago

0.0.3

10 years ago

0.0.2

10 years ago

0.0.1

10 years ago

0.0.0

10 years ago