摘要:
说到底, pageY, clientY, screenY的计算,就是要找到参考点, 它们的值就是: 鼠标点击的点 和参考点指点 的直角坐标系的距离 stackoverflow上面有个回答,讲解的非常清晰。 offsetX and offsetY are relative to the parent 阅读全文
posted @ 2018-04-12 13:33
立志做一个好的程序员
阅读(385)
评论(0)
推荐(0)
摘要:
原文: https://html5.litten.com/how-to-drag-and-drop-on-an-html5-canvas/ 下面作者的原始的版本会抖动一下(鼠标刚点下去的时候,位置会发生一下突变,不是很友好), 我修改了 一下。 How to Drag and Drop on an 阅读全文
posted @ 2018-04-12 13:14
立志做一个好的程序员
阅读(337)
评论(0)
推荐(0)