Repository URL to install this package:
Version:
0.9.6 ▾
|
// this touch stuff isn't used or needed handleTouchStart = event => { // console.log('HANDLE_TOUCH_START') this.isTouching = true this.state.activate() // handleClick // this.state.handleActive } handleTouchMove = event => { // clearTimeout(this.touchTimeout) // this.touchTimeout = setTimeout(() => { // this.isTouching = false // }, 500) } /** * @type {React.TouchEventHandler} * @param {React.TouchEvent} event */ handleTouchEnd = event => { // console.log('HANDLE_TOUCH_END') if (this.isTouching === true) { this.isTouching = false this.handleClick(event) } else { this.state.deactivate() } // this.state.handleTouchEnd }