Run the app server
npm install @zohodesk/touch-pressureRun the app server
```
npm run start -server:port=2524 -server:context=public -disable:contexturl=true
#### Example Usage
`jsx`
handleTouchMove={this.handleTouchMove}
handleTouchForceChange={this.handleTouchForceChange}
handleTouchEnd={this.handleTouchEnd}
>
{children}
#### Props
- children : React Element required (React Element)handleTouchStart(evt, inital) : Function
- handler functionevt
- will return touch start eventinital {pageX: 0, pageY: 0, force: 0-1}
- Position of the eventhandleTouchMove(evt,inital,current) : Function
- handler functionevt
- will return touch start eventinital {pageX: 0, pageY: 0, force: 0-1}
- Position of the starting pointcurrent {pageX: 0, pageY: 0, force: 0-1}
- Current Position of the touch pointhandleTouchForceChange(force) : Function
- handler functionforce - (0-1)
- Position of the eventhandleTouchEnd(evt, current) : Function
- handler functionevt
- will return touch start eventcurrent {pageX: 0, pageY: 0, force: 0-1}
- Current Position of the touch pointhandleSwipeLeft(inital, current) : Function
- handler functioninital {pageX: 0, pageY: 0, force: 0-1}
- Position of the starting pointcurrent {pageX: 0, pageY: 0, force: 0-1}
- Current Position of the touch pointhandleSwipeRight(inital, current) : Function
- handler functioninital {pageX: 0, pageY: 0, force: 0-1}
- Position of the starting pointcurrent {pageX: 0, pageY: 0, force: 0-1}
- Current Position of the touch pointhandleSwipeUp(inital, current) : Function
- handler functioninital {pageX: 0, pageY: 0, force: 0-1}
- Position of the starting pointcurrent {pageX: 0, pageY: 0, force: 0-1}
- Current Position of the touch pointhandleSwipeDown(inital, current) : Function
- handler functioninital {pageX: 0, pageY: 0, force: 0-1}
- Position of the starting pointcurrent {pageX: 0, pageY: 0, force: 0-1}
- Current Position of the touch pointconfig : Object
- travelled distance in pixel. default 50.swipeDistance : Number
- travelled distance in pixel. default 50.longPressDuration : Number
- This will be usefull when ontouchforcechange is not supported browsers. default 50.preventClickTime : Number
- To prevent click event time in millis. default 500.preventClickMaxForce : Number
- To prevent click event by max force. default 0.5preventDefault : boolean`
-