[]关于mouseover的问题

例如舞台0,0的位置放纸张图片,然后监听mouseOver,mouseOut事件,鼠标从舞台外面移到图片上触发不了mouseOver,但是移除舞台可以监听到mouseOut事件
已邀请:

Monica - 知识达人

赞同来自: shiyang

目前确实有问题,已经告知相关同事了。多谢反馈

shiyang

赞同来自:

override public function onRegister():void{
            Laya.init(600,600,WebGL);
            Laya.stage.alignH=Stage.ALIGN_MIDDLE;
            Laya.stage.alignV=Stage.ALIGN_TOP;
            
            var sp:Sprite=new Sprite();
            sp.width=100;
            sp.height=100;
            sp.graphics.drawRect(0,0,100,100,"#ff0000");
            sp.on(Event.MOUSE_OVER,this,onMouse);
            sp.on(Event.MOUSE_OUT,this,onMouse);
            Laya.stage.addChild(sp);
            Stat.show();
        }
        
        private function onMouse(event:Event):void{
            trace(event.type);
        }

要回复问题请先

商务合作
商务合作