code is written in react. The problem is this:
1, chrome, mouse down-> move. The code that triggers ontouchstart, but does not trigger ontouchmove
is as follows: who knows what the problem may be?
handleDownTest(){
console.log("handleDownTest")
let target = document.querySelector(`-sharptest1`)
target.ontouchmove = this.handlemovetest.bind(this,target )
target.ontouchup = this.handleuptest.bind(this)
}
handlemovetest(target ){
console.log("handlemovetest")
target.style.color = "red";
}
handleuptest(target ){
console.log("handleuptest")
target.onmousemove = null
target.onmouseup = null
}
render() {
const { value } = this.props
return (
<div id="test1" onTouchStart={this.handleDownTest.bind(this)}>
qwqwqwqwqw
</div>
)
}
}