Touch events for value-event
$ npm install --save touch-event
var touchEvent = require('touch-event')
var h = require('virtual-dom/h')
h('div', {
'ev-touchmove': touchEvent.move(moveHandler)
})
Required
Type: function
The handler to call when the element receives the specified touch event.
Type: object
Default: {}
Data to pass to the handler when the element is scrolled. This will be extended with an array of touches
objects. Touch data will be nested:
[
{
client: {x, y}
//...
}
]
MIT © Ben Drucker