Closed huangguangjie closed 7 years ago
滚动条非顶部,则发现涂沫位置不是在鼠标位置。查找原因是var cC = canvas.getBoundingClientRect();只会拿到canvas离浏览器顶部的距离,而非document顶部的距离。请作者修复一下。谢谢贡献代码!
滚动条非顶部,则发现涂沫位置不是在鼠标位置。查找原因是var cC = canvas.getBoundingClientRect();只会拿到canvas离浏览器顶部的距离,而非document顶部的距离。请作者修复一下。谢谢贡献代码!