最赞回答 / 小鸡三号
已经找到解决方法:var isMouseMove = false; canvas.onmouseup = function(e){ e.preventDefault(); isMouseDown = false; var curLoc = windowToCanvas(e.clientX ,e.clientY); console.log(curLoc.x +"," + curLoc.y +"," +lastLoc.x+"," +lastLoc...
2016-01-26