大约有 7 项符合查询结果, 库内数据总量为 30,779 项。 (搜索耗时: 0.0021 秒)
...ginPosition); } /**抬起事件处理*/ function onMouseUp(e) { Laya.stage.off(Event.MOUSE_MOVE, this, onMouseMove); Laya.stage.off(Event.MOUSE_UP, this, onMouseUp); Laya.stage.off(Event.MOUSE_OUT, this, onMouseUp); // 滑动到目的地 var dist = Laya.stage.mouseX - buttonPosition; var targetX = b...
来源: Laya_示例 发布时间: 20241119
...ext); } /* 停止滚动文本 */ function finishScrollText(e) { Laya.stage.off(Event.MOUSE_MOVE, this, scrollText); Laya.stage.off(Event.MOUSE_UP, this, finishScrollText); } /* 鼠标滚动文本 */ function scrollText(e) { var nowX = txt.mouseX; var nowY = txt.mouseY; txt.scrollX += prevX - nowX; t...
来源: Laya_示例 发布时间: 20241119
...utton; } function onDecreaseAlpha1(e) { //移除鼠标单击事件 button1.off(Event.CLICK, this, onDecreaseAlpha1); //定时执行一次(间隔时间) Laya.timer.once(3000, this, onComplete1); } function onDecreaseAlpha2(e) { //移除鼠标单击事件 button2.off(Event.CLICK, this, onDecreaseAlpha...
来源: Laya_示例 发布时间: 20241119
...eX - mLastMouseX); mY = mY - (Laya.stage.mouseY - mLastMouseY); Laya.stage.off(Event.MOUSE_MOVE, this, mouseMove); } // 窗口大小改变,把地图的视口区域重设下 function resize() { //改变地图视口大小 tiledMap.changeViewPort(mX, mY, Browser.width, Browser.height); } })();module ...
来源: Laya_示例 发布时间: 20241119
... preRadian); preRadian = nowRadian; } } function onMouseUp(e) { Laya.stage.off(Event.MOUSE_MOVE, this, onMouseMove); } })();module laya { import Sprite = Laya.Sprite; import Stage = Laya.Stage; import Event = Laya.Event; import Browser = Laya.Browser; import WebGL = Laya.WebGL; export class Interact...
来源: Laya_示例 发布时间: 20241119
...e) * factor; lastDistance = distance; } function onMouseUp(e) { Laya.stage.off(Event.MOUSE_MOVE, this, onMouseMove); } /**计算两个触摸点之间的距离*/ function getDistance(points) { var distance = 0; if (points && points.length == 2) { var dx = points[0].stageX - points[1].stageX; var dy =...
来源: Laya_示例 发布时间: 20241119
...触发hold,终止触发hold Laya.timer.clear(this, onHold); Laya.stage.off(Event.MOUSE_UP, this, onApeRelease); } })();module laya { import Sprite = Laya.Sprite; import Stage = Laya.Stage; import Event = Laya.Event; import Texture = Laya.Texture; import Browser = Laya.Browser; import Ease = Laya.E...
来源: Laya_示例 发布时间: 20241119