我遇到的问题:
版本:cocos2d-x 3.2
在TableView中加入ControlButton,在点击Button并移动时,不能scroll。
原因是:
在ControlButton在基类Control中,绑定点击事件时
auto touchListener = EventListenerTouchOneByOne::create();
touchListener->setSwallowTouches(true);
而且如果我在不改源码的情况下,无法更改setSwallowTouches(false).
请问,在不改源码的情况下,有可以模拟原来
setTouchSwallowEnabled(bool)的方法吗?