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

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

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

...nce(e.touches); //判断当前距离与上次距离变化,确定是放大还是缩小 const factor = 0.01; this.sp.scaleX += (distance - lastDistance) * factor; this.sp.scaleY += (distance - lastDistance) * factor; lastDistance = distance; } onMouseUp(e) { const Event = Laya.Event; Laya.stage.off(...

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

2. UI-RefreshList [ 56%]

...is.itemIsOpen) { var targetX; //根据单元格x当前坐标,处理回缩还是展开。 if (this.openedItem.x Math.abs(moveY) && !(this.itemIsOpen)) { //存储正在打开的单元格对象,用于跨单元格恢复处理 this.openedItem = item; //已进入划动状态 this.itemIsOpen = true; //...

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