cc.TableView之 TableViewCell带有点击事件时 滑不动的问题

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/iamlegendary/article/details/76977723

造成点不动的原因是,TableViewCell里的button,或者是cc.Widget有触碰事件。
事件是默认吞噬的,且优先级较高。会吞噬掉TableView的滑动事件

解决方法: 将有触碰事件的节点或者是button调用

button.setSwallowTouches(false);

猜你喜欢

转载自blog.csdn.net/iamlegendary/article/details/76977723