Slider moved event not working

Followed this http://cocos2d-x.org/docs/cocos2d-x/en/ui_components/sliders.html

I tried adding case ui::Widget::TouchEventType::MOVED:

but it does not seem to be getting called. I think it’s a bug in the engine.

I am using 3.15.1