Commit 4b3983ed by huahua

提交

parent 76ff4ccd
......@@ -2757,6 +2757,9 @@
* 部件旋转开始事件
*/
rotateStart: function(e) {
console.log("sdxcs")
// 点击选中部件
this.itemClick(e);
// 获取当前选中的部件
......@@ -2822,8 +2825,8 @@
var item = items[index];
item.touchMoveX = e.touches[0].clientX;
item.touchMoveY = e.touches[0].clientY;
let cx = item.x + distanceX;
let cy = item.y + distanceY;
let cx = item.x ;
let cy = item.y ;
let c1 = Math.atan2(item.touchY - cy, item.touchX - cx) * 180 / (Math.PI);
let c2 = Math.atan2(item.touchMoveY - cy, item.touchMoveX - cx) * 180 / (Math.PI);
let angleC;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment