好得很程序员自学网

<tfoot draggable='sEl'></tfoot>

TypeScript白鹭引擎Egret防止按钮事件冒泡穿透

 

 this .addEventListener(egret.TouchEvent.TOUCH_BEGIN, (event) =>  {
                  if  (event.target!= this )  return ; //  防止按钮事件冒泡穿透 
               
                 this .isCancelTap =  false  ;
            },   this )

 

查看更多关于TypeScript白鹭引擎Egret防止按钮事件冒泡穿透的详细内容...

  阅读:73次