大约有 2 项符合查询结果, 库内数据总量为 30,778 项。 (搜索耗时: 0.0011 秒)
...this.onMouseUp); Laya.stage.off(Event.MOUSE_OUT, this, this.onMouseUp); // 滑动到目的地 let dist = Laya.stage.mouseX - buttonPosition; let targetX = beginPosition; if (dist > TOGGLE_DIST) { targetX = endPosition; } Tween.to(this.button, { x: targetX }, 100); } } new Interaction_Swipe();module ...
来源: Laya2.0_示例 发布时间: 20241118
...rag(e) { //鼠标按下开始拖拽(设置了拖动区域和超界弹回的滑动效果) this.ape.startDrag(dragRegion, true, 100); } } new Interaction_Drag();module laya { import Sprite = Laya.Sprite; import Stage = Laya.Stage; import Event = Laya.Event; import Rectangle = Laya.Rectangle; import Te...
来源: Laya2.0_示例 发布时间: 20241118