大约有 2 项符合查询结果, 库内数据总量为 30,778 项。 (搜索耗时: 0.0012 秒)
...this.sp.pos(Laya.stage.width / 2, Laya.stage.height / 2); this.sp.on(Event.MOUSE_DOWN, this, this.onMouseDown); } onMouseDown(e) { const Event = Laya.Event; // 手机上才有 touches 属性 let touches = e.touches; if (touches && touches.length == 2) { lastDistance = this.getDistance(touches); Laya...
来源: Laya2.0_示例 发布时间: 20241118
...00"; this.txt.fontSize = 20; this.txt.color = "#ffffff"; this.txt.on(Event.MOUSE_DOWN, this, this.startScrollText); } /* 开始滚动文本 */ startScrollText(e) { const Event = Laya.Event; prevX = this.txt.mouseX; prevY = this.txt.mouseY; Laya.stage.on(Event.MOUSE_MOVE, this, this.scrollText); Laya...
来源: Laya2.0_示例 发布时间: 20241118