【已解决】cocos2dx3.10 PageView::addEventListener,不起作用?

查看源码 回调是在这里调用 PageView::pageTurningEvent,但是这个方法也是空的,没地方调用?

搜索了下 已经有人发一样的问题了。
http://www.cocoachina.com/bbs/read.php?tid-457520-keyword-addEventListener.html
真吭 这种问题 也要自己动手。

唉 自己提的问题 还得自己回答。
仿pageView 里的_indicator, 把pageTurningEvent方法加进去 就行了。

https://github.com/cocos2d/cocos2d-x/pull/14964
已修复

感觉这种解决方案并不完美。
如果自己实现一个类似pageView的indicator指示器。以下是pageView滑动时的输出。
type=9
curPageIndex = 0
type=4
type=9
curPageIndex = 0
type=4
type=9
curPageIndex = 0
type=4
type=9
curPageIndex = 1
type=9
curPageIndex = 0
type=9
curPageIndex = 0
type=9
curPageIndex = 0
type=9
curPageIndex = 0
type=9
curPageIndex = 1
type=9
curPageIndex = 1
type=9
curPageIndex = 1
type=9
curPageIndex = 1
type=9
curPageIndex = 1
type=9
curPageIndex = 1
type=9
curPageIndex = 1
type=9
curPageIndex = 1
type=9
curPageIndex = 1
type=9
curPageIndex = 1
type=9
curPageIndex = 1
type=9
curPageIndex = 1
type=9
curPageIndex = 1
type=9
curPageIndex = 1
type=9
curPageIndex = 1
type=9
curPageIndex = 1
type=9
curPageIndex = 1
type=9
curPageIndex = 1
type=9
curPageIndex = 1
type=9
curPageIndex = 1
type=9
curPageIndex = 1
type=9
curPageIndex = 1
type=9
curPageIndex = 1
type=9
curPageIndex = 1
type=9
curPageIndex = 1
type=9
curPageIndex = 1
type=9
curPageIndex = 1
type=9
curPageIndex = 1
type=9
curPageIndex = 1
type=9
curPageIndex = 1
type=9
curPageIndex = 1
type=9
curPageIndex = 1
type=9
curPageIndex = 1
type=9
curPageIndex = 1
type=9
curPageIndex = 1
type=9
curPageIndex = 1
type=9
curPageIndex = 1
type=9
curPageIndex = 1
type=9
curPageIndex = 1
type=9
curPageIndex = 1
type=9
curPageIndex = 1
type=9
curPageIndex = 1
type=9
curPageIndex = 1
type=9
curPageIndex = 1
type=9
curPageIndex = 1
type=9
curPageIndex = 1
type=10
type=9
curPageIndex = 1
如果使用 CONTAINER_MOVED 也就上面的type=9,中间curPageIndex会出现 交叉。自己实现的indicator指示器,会出现 左右乱跳的现象。
如果使用 AUTOSCROLL_ENDED 也就是上面type=10,要等待pageview完全静止,也就是等待很久指示器才有反应。