大约有 59 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0031 秒)
...MOUSE_UP,this,onUp); } private function onUp():void { Laya.stage.off(Event.MOUSE_MOVE,this,onMove); } private function onDown(e:Event):void { Laya.stage.on(Event.MOUSE_MOVE,this,onMove); } private function onMove():void { // 让sp跟随鼠标移动 sp.x=Laya.stage.mouseX; sp.y=Laya.stage.mouseY; //...
来源: Laya_社区 发布时间: 20170106
... = Laya.stage.mouseX; mLastMouseY = Laya.stage.mouseY; Laya.stage.on(Event.MOUSE_MOVE, this, mouseMove); } function mouseMove() { //移动地图视口 tiledMap.moveViewPort(mX - (Laya.stage.mouseX - mLastMouseX), mY - (Laya.stage.mouseY - mLastMouseY)); } function mouseUp() { mX = mX - (Laya.stage.m...
来源: Laya_示例 发布时间: 20251130
...ya.stage.mouseX; mLastMouseY = Laya.stage.mouseY; Laya.stage.on(Laya.Event.MOUSE_MOVE, this, this.mouseMove); } mouseMove() { let moveX = mX - (Laya.stage.mouseX - mLastMouseX), moveY = mY - (Laya.stage.mouseY - mLastMouseY); // 移动地图视口 this.tiledMap.moveViewPort(moveX, moveY); } mouseUp(...
来源: Laya2.0_示例 发布时间: 20251130
...,亦没有光标一说,如果你想做滑动手势,,,可以监听Mouse_MOVE事件,在移动的时候改变光标(移动端可以让显示对象跟随鼠标移动)显示! 2017-06-17 0 0 分享 微博 QZONE 微信 ohkei - as3、as2、h5 赞同来自: 手势识别主要会用到以下...
来源: Laya_社区 发布时间: 20170617
移除鼠标事件 btn.on(Event.MOUSE_MOVE, this, onMouseMove); 如何移除btn的该鼠标事件 2017-06-23 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 cuixueying 赞同来自: on用来侦听事件,off用...
来源: Laya_社区 发布时间: 20170623
...onsole.log("鼠标点击的点" + this.a, this.b) Laya.stage.on(Laya.Event.MOUSE_MOVE, this, this.move2) } move2() { this.path.push(Laya.stage.mouseX, Laya.stage.mouseY); // console.log("移动的点集合" + this.path); this.ps.graphics.drawCurves(this.a, this.b, this.path, "#fff") // console.log("...
来源: Laya_社区 发布时间: 20170721
...候 才监听 move事件的话! onMouseDown 中 Laya.stage.on(Event.MOUSE_MOVE, this, onMouseMove); onMouseUp 中 Laya.stage.off(Event.MOUSE_MOVE, this, onMouseMove); 也可以写个变量 ,down的时候为true,否则为false 如"cuixueying" 回答的一样! 2017-04-21 3 0 ...
来源: Laya_社区 发布时间: 20170421
....layer.on(Laya.Event.MOUSE_UP, this, this.upFun); this.layer.on(Laya.Event.MOUSE_MOVE, this, this.moveFun); } //弹起事件 ModeKey.prototype.upFun = function () { this.isDown = false; this.isUp = false; this.isMove = false; this.isMode = "stop"; //移除弹起和移动事件 this.layer.off(Laya.Ev...
来源: Laya_社区 发布时间: 20171030
...[1].stageY, touches[0].stageX - touches[1].stageX); Laya.stage.on(Event.MOUSE_MOVE, this, this.onMouseMove); } } 2019-09-25 0 0 分享 微博 QZONE 微信 17 赞同来自: 同上,需要同时获取到多个触控点的坐标 2019-11-15 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回...
来源: Laya_社区 发布时间: 20190919
...useHandler); rect.on(Event.RIGHT_CLICK, this, mouseHandler); rect.on(Event.MOUSE_MOVE, this, mouseHandler); 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); } ...
来源: Laya_社区 发布时间: 20180205