|
@@ -318,7 +318,7 @@ export class widget_item extends Component {
|
|
|
else if(this.m_data.type==config.Widget_Type_List.CONTAINER_LAYER){
|
|
|
this.node.on(Node.EventType.MOUSE_DOWN,(et:EventTouch)=>{
|
|
|
ClientEvent.dispatchEvent(config.Event.UpdateAttributes,this.getWidgetAtt())
|
|
|
- })
|
|
|
+ },this,true)
|
|
|
}
|
|
|
else{
|
|
|
this.node.on(Node.EventType.TOUCH_MOVE,(et:EventTouch)=>{
|
|
@@ -335,6 +335,7 @@ export class widget_item extends Component {
|
|
|
}
|
|
|
})
|
|
|
this.node.on(Node.EventType.MOUSE_DOWN,(et:EventTouch)=>{
|
|
|
+ et.propagationStopped = true;
|
|
|
let pos = this.node.parent.getComponent(UITransform).convertToWorldSpaceAR(this.node.position)
|
|
|
if(this.x_len==0){
|
|
|
this.x_len = (et.getUILocation().x - pos.x)*2;
|