今天用到cocostudio中的pageview,设置一个界面的滑动时候发现只能再滑动距离超过一半才能翻页,感觉很是不好;
通过下面方法可以修改翻页参数:
void PageView::setCustomScrollThreshold(float threshold)
{CCASSERT(threshold > 0, "Invalid threshold!");
_customScrollThreshold = threshold;
this->setUsingCustomScrollThreshold(true);
}
如设置pageview->setCustomScrollThreshold(100.0) 则可实现pageview的翻页距离为100