大约有 1 项符合查询结果, 库内数据总量为 30,778 项。 (搜索耗时: 0.0009 秒)
...onMouseMove(e) { let distance = this.getDistance(e.touches); //判断当前距离与上次距离变化,确定是放大还是缩小 const factor = 0.01; this.sp.scaleX += (distance - lastDistance) * factor; this.sp.scaleY += (distance - lastDistance) * factor; lastDistance = distance; } onMouseUp(e...
来源: Laya2.0_示例 发布时间: 20241117