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

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

11. 鼠标交互-滑动 [ 88%]

...E_MOVE, this, onMouseMove); buttonPosition = button.x; Laya.stage.on(Event.MOUSE_UP, this, onMouseUp); Laya.stage.on(Event.MOUSE_OUT, this, onMouseUp); } /**移到事件处理*/ function onMouseMove(e) { button.x = Math.max(Math.min(Laya.stage.mouseX, endPosition), beginPosition); } /**抬起事件...

来源: Laya_示例 发布时间: 20240929

12. 鼠标交互-滑动 [ 88%]

...is, this.onMouseMove); buttonPosition = this.button.x; Laya.stage.on(Event.MOUSE_UP, this, this.onMouseUp); Laya.stage.on(Event.MOUSE_OUT, this, this.onMouseUp); } /**移到事件处理*/ onMouseMove(e) { this.button.x = Math.max(Math.min(Laya.stage.mouseX, endPosition), beginPosition); } /**抬起...

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

13. 文本-滚动文本 [ 87%]

...eY; Laya.stage.on(Event.MOUSE_MOVE, this, scrollText); Laya.stage.on(Event.MOUSE_UP, this, finishScrollText); } /* 停止滚动文本 */ function finishScrollText(e) { Laya.stage.off(Event.MOUSE_MOVE, this, scrollText); Laya.stage.off(Event.MOUSE_UP, this, finishScrollText); } /* 鼠标滚动文本 ...

来源: Laya_示例 发布时间: 20240929

14. 文本-滚动文本 [ 87%]

...aya.stage.on(Event.MOUSE_MOVE, this, this.scrollText); Laya.stage.on(Event.MOUSE_UP, this, this.finishScrollText); } /* 停止滚动文本 */ finishScrollText(e) { const Event = Laya.Event; Laya.stage.off(Event.MOUSE_MOVE, this, this.scrollText); Laya.stage.off(Event.MOUSE_UP, this, this.finishScrol...

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

15. 鼠标交互-鼠标交互 [ 87%]

...鼠标事件 rect.on(Event.MOUSE_DOWN, this, mouseHandler); rect.on(Event.MOUSE_UP, this, mouseHandler); rect.on(Event.CLICK, this, mouseHandler); rect.on(Event.RIGHT_MOUSE_DOWN, this, mouseHandler); rect.on(Event.RIGHT_MOUSE_UP, this, mouseHandler); rect.on(Event.RIGHT_CLICK, this, mouseHandler); r...

来源: Laya_示例 发布时间: 20240929

16. 鼠标交互-鼠标交互 [ 87%]

...事件 rect.on(Event.MOUSE_DOWN, this, this.mouseHandler); rect.on(Event.MOUSE_UP, this, this.mouseHandler); rect.on(Event.CLICK, this, this.mouseHandler); rect.on(Event.RIGHT_MOUSE_DOWN, this, this.mouseHandler); rect.on(Event.RIGHT_MOUSE_UP, this, this.mouseHandler); rect.on(Event.RIGHT_CLICK, thi...

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

17. VRCameraScript中 stage 一直有mouse_up的监听事件,导致 Radio 按钮有点击穿透的问题,该如何进行stopPropagation()? [ 83%]

VRCameraScript中 stage 一直有mouse_up的监听事件,导致 Radio 按钮有点击穿透的问题,该如何进行stopPropagation()? VRCameraScript中 stage 一直有mouse_up的监听事件,导致 Radio 按钮有点击穿透的问题,该如何进行stopPropagation()? 2017-06-22 添加评...

来源: Laya_社区 发布时间: 20170622

18. 鼠标交互-双指旋转(多点触控) [ 80%]

...28"; setup(); })(); function setup() { createSprite(); Laya.stage.on(Event.MOUSE_UP, this, onMouseUp); Laya.stage.on(Event.MOUSE_OUT, this, onMouseUp); } function createSprite() { sp = new Sprite(); var w = 200, h = 300; sp.graphics.drawRect(0, 0, w, h, "#FF7F50"); sp.size(w, h); sp.pivot(w / 2, h /...

来源: Laya_示例 发布时间: 20240929

19. 鼠标交互-双指旋转(多点触控) [ 80%]

...show(); this.setup(); } setup() { this.createSprite(); Laya.stage.on(Event.MOUSE_UP, this, this.onMouseUp); Laya.stage.on(Event.MOUSE_OUT, this, this.onMouseUp); } createSprite() { const Sprite = Laya.Sprite, Event = Laya.Event; let w = 200, h = 300; this.sp = new Sprite(); Laya.stage.addChild(this....

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

20. tab 是否可以做到左右滑动切换view呢? [ 80%]

...USE_DOWN ,this, this.onMouseDown);         this.on(laya.events.Event.MOUSE_UP ,this, this.onMouseUp);              }     private onMouseDownX : number;     private onMouseDownY : number;     private isMove : boolean ;     onMouseDown(e : laya.events.Event):void{      ...

来源: Laya_社区 发布时间: 20160823