mouseupの際に、handleMoveを止めたいんですが、うまくいきません
javascript
1 this.handleStart = function(e) { 2 handleMove() 3 document.body.addEventListener('mouseup', function() { 4 document.body.removeEventListener("mousemove", handleMove, false) 5 }) 6 } 7 8 function handleMove() { 9 document.body.addEventListener("mousemove", function(e) { 10 console.log("test") 11 }) 12 }
回答2件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
2017/02/08 07:31