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

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

11. 获取鼠标当前状态 [ 79%]

...内容相关的链接 提交 1 个回复 leisure 赞同来自: Laya.Event.MOUSE_OUT 完全解决这个问题啊 2018-02-17 0 1 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 laya2902 相关问题 请问有没有方法能够获取“鼠标是...

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

12. 鼠标交互-鼠标交互 [ 79%]

...ouseHandler); rect.on(Event.MOUSE_OVER, this, mouseHandler); rect.on(Event.MOUSE_OUT, this, mouseHandler); rect.on(Event.DOUBLE_CLICK, this, mouseHandler); rect.on(Event.MOUSE_WHEEL, this, mouseHandler); } /** * 鼠标响应事件处理 */ function mouseHandler(e) { switch (e.type) { case Event.MOUS...

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

13. 鼠标交互-鼠标交互 [ 79%]

...andler); rect.on(Event.MOUSE_OVER, this, this.mouseHandler); rect.on(Event.MOUSE_OUT, this, this.mouseHandler); rect.on(Event.DOUBLE_CLICK, this, this.mouseHandler); rect.on(Event.MOUSE_WHEEL, this, this.mouseHandler); } /** * 鼠标响应事件处理 */ mouseHandler(e) { const Event = Laya.Event; s...

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

14. Panel滑动的时候会触发moveout事件,不希望他触发的话应该怎么解决 [ 77%]

...nel里头我设置了一组item,每个item注册了mouse_up  mouse_down mouse_out,为了做到按下选中,松手不选中的效果。但当这个panel滑动的时候,会触发mouse_out事件,导致item就被设置成不选中的效果。请问如何解决呢? 2018-05-16 添加评论 ...

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

15. 刚接触laya的一系列问题 [ 76%]

...按钮会出现卡在缩小状态,代码中确实添加了MOUSE_UP,和MOUSE_OUT没效果 2018-09-05 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 Laya_Aaron 赞同来自: 前面的问题不明确, 支持多...

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

16. 一个LayaAir moveout target 设计上的疑问? [ 72%]

...ya.Event.MOUSE_OVER, this, over);         sp[j + i * 10].on(Laya.Event.MOUSE_OUT, this, out);     } } function over(e) {     e.target.graphics.drawRect(0, 0, 50, 50, "red"); } function out(e) {     //正常大家可能会这么写,但是运行之后是无效的,因为e.target可能变...

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

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

...ite(); 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 / 2); sp.pos(Laya.stage.width / 2, Laya.stage.hei...

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

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

...; 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.sp); this.sp.graphics.drawRect(0, 0, w, h, "#FF7F50")...

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

19. 在微信分享成功的回调函数里,Laya播放音效失败。 [ 70%]

...MOUSE_MOVE); Laya.stage.off(Laya.Event.MOUSE_UP) Laya.stage.off(Laya.Event.MOUSE_OUT);  // 鼠标按下事件 Laya.stage.on(Laya.Event.MOUSE_DOWN, this.snakeSelf, this.snakeSelf.onMouseDown); Laya.stage.on(Laya.Event.MOUSE_UP, this.snakeSelf, this.snakeSelf.onMouseUp); Laya.stage.on(Laya.Event.MOUS...

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

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

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

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