We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
1.3.8 or 1.3.9
代码中使用了touches对象的x,y属性
self.__oneTouchMove = function (touch) { var xMove, yMove; // 计算单指移动的距离 if (self.touchended) { return self.updateCanvas() } xMove = Math.round(touch.x - self.touchX0); yMove = Math.round(touch.y - self.touchY0); var imgLeft = Math.round(self.rectX + xMove); var imgTop = Math.round(self.rectY + yMove); self.outsideBound(imgLeft, imgTop); self.updateCanvas(); };
小程序的touches对象:
没有x,y属性,导致传入event对象无效
wepy 2.0 环境下:
ts(e) { this.cropper.touchStart({ ...e.$wx, touches: e.$wx.touches.map(i => { return { ...i, x: i.clientX, y: i.clientY }; }) }); },
其他touch事件参考如上写法,可暂时解决
后续版本更新中修复相关bug
The text was updated successfully, but these errors were encountered:
Issue tracker 只用于反馈 bug 和 feature request。在提问前请仔细阅读我们的文档,并推荐阅读《提问的智慧》:https://github.com/ruby-china/How-To-Ask-Questions-The-Smart-Way/blob/master/README-zh_CN.md
Sorry, something went wrong.
No branches or pull requests
版本
1.3.8 or 1.3.9
问题
代码中使用了touches对象的x,y属性
小程序的touches对象:
没有x,y属性,导致传入event对象无效
暂时兼容解决方案:
wepy 2.0 环境下:
其他touch事件参考如上写法,可暂时解决
期望
后续版本更新中修复相关bug
The text was updated successfully, but these errors were encountered: