1.0.2 • Published 7 years ago

simplefinger v1.0.2

Weekly downloads
7
License
ISC
Repository
github
Last release
7 years ago

SimpleFinger

Events

  • onTap
  • onDoubleTap
  • onLongTap
  • onPressMove (e.deltaX,e.deltaY)
  • onRotate (e.angle)
  • onPinch (e.pinch)
  • onSwipe (e.direction)

Usage

npm install simplefinger
import SimpleFinger from 'simplefinger'

render(){
  return(
    <SimpleFinger
      onTap = {this.onTap}
      onDoubleTap = {this.onDoubleTap}
      onLongTap = {this.onLongTap}
      onPressMove = {this.onPressMove}
      onRotate = {this.onRotate}
      onPinch = {this.onPinch}
      onSwipe = {this.onSwipe}

      <div>The element that you want to bind event</div>
    />
  )
}