hi! I was creating a scrollview, but when i tried to scroll it by using my mouse scrollwheel, it is not working. how do i enable that module? or if there is any tips to make the scroll wheel is scrolling the scrollview, it would be great as well.
here is my code:
var scrollView = new ccui.ScrollView();
scrollView.setDirection(ccui.ScrollView.DIR_VERTICAL);
scrollView.setTouchEnabled(true);
scrollView.setBounceEnabled(true);
scrollView.setInertiaScrollEnabled(true);
scrollView.setBackGroundImage(res.HelloWorld_png);
scrollView.setContentSize(cc.size(300, 200));
scrollView.setInnerContainerSize(cc.size(1280, 2500));
scrollView.setAnchorPoint(cc.p(0.5, 0.5));
scrollView.setPosition(cc.p(size.width / 2, size.height / 2));
this.addChild(scrollView);