[]list的render复用问题

例子:界面中list的y可生成4个render为item0,1,2,3,往下拖第五个item也叫item0,
通过list.selectHandler = new Laya.Handler(this, this._OnSelect);
function _OnSelect(){
//选中的render上加个选中框,
var selection = this.visualizeList.selection;
        selection.addChild(this.m_CenterDiv.imgSelect);
}
第五个render也会有选中框,以前是list.cacheContent=true可以解决,现在如果设置list.cacheContent=true会出现拖动问题
已邀请:

Monica - 知识达人

赞同来自:

参考下这个帖子中的做法:https://ask.layabox.com/question/3232

要回复问题请先

商务合作
商务合作