• 首页
  • 动态
  • 案例
  • 引擎社区
  • API
  • 文档
  • 示例
  • 引擎下载

大约有 2 项符合查询结果, 库内数据总量为 30,723 项。 (搜索耗时: 0.0013 秒)

1. 鼠标交互-双指缩放(多点触控) [ 100%]

...Laya.Event; Laya.stage.off(Event.MOUSE_MOVE, this, this.onMouseMove); } /**计算两个触摸点之间的距离*/ getDistance(points) { let distance = 0; if (points && points.length == 2) { let dx = points[0].stageX - points[1].stageX; let dy = points[0].stageY - points[1].stageY; distance = Math.sq...

来源: Laya2.0_示例 发布时间: 20240929

2. UI-RefreshList [ 59%]

... if (eventName === "dragTopLimit") { //先清理bottom的状态,避免top计算出错 this.refreshLoading.bottom = NaN; this.refreshLoading.top = distance; //创建模拟数据 var _arr = this.createData(5, "顶部新增的标题"); //加到源数据前面 _arr = _arr.concat(this.refreshList.array...

来源: Laya2.0_示例 发布时间: 20240929