大约有 2 项符合查询结果, 库内数据总量为 30,778 项。 (搜索耗时: 0.0011 秒)
...发更高效。//swipe滚动范围 let TrackLength = 200; //触发swipe的拖动距离 let TOGGLE_DIST = TrackLength / 2; let buttonPosition, beginPosition, endPosition; let button; class Interaction_Swipe { constructor() { const Browser = Laya.Browser, WebGL = Laya.WebGL, Stage = Laya.Stage, Stat =...
来源: Laya2.0_示例 发布时间: 20241118
....stage.on(Laya.Event.RESIZE, this.resize); this.resize(); } // 鼠标按下拖动地图 mouseDown() { mLastMouseX = Laya.stage.mouseX; mLastMouseY = Laya.stage.mouseY; Laya.stage.on(Laya.Event.MOUSE_MOVE, this, this.mouseMove); } mouseMove() { let moveX = mX - (Laya.stage.mouseX - mLastMouseX), move...
来源: Laya2.0_示例 发布时间: 20241118