xwm0660

Results 7 comments of xwm0660

creactpolygon 好像是改这个绘制的方法

数据问题出错了 我遇上过

改写mousemove事件 换touch事件 就可以了

额 我的已经可以了 实现了 手指滑动,长按,双指缩放,横向全屏等等·

block.addEventListener("touchmove", function (f) { // if(f.touches.length>=2){ // distancX2 = Math.round(Math.abs(f.touches[1].pageX-f.touches[0].pageX)); // distancY2 = Math.round(Math.abs(f.touches[1].pageY-f.touches[0].pageY)); // distance2 = Math.round(Math.sqrt((distancX2*distancX2)+(distancY2*distancY2))); // touchstartDis.push(distance2) // if(touchstartDis.length>2){ // var touchZj = limitArrlength(touchstartDis) // } //...

我记得 改滑动 只需要下面那一段就可以了· 注释掉的 是缩放的那一块·

670630268 在 2018-06-13 15:01:06,"tool2014" 写道: 我的扣扣是1298137327,谢谢了 — You are receiving this because you commented. Reply to this email directly, view it on GitHub, or mute the thread.