I have cocos studio page view in which four layouts are there one for each page. Each page contains 4 buttons. When i tap any button in any page PageView Turning Event is called. I want to call this only when page is actually changed.
Below is my code.
s_pageView->addEventListener([=](Ref* sender,PageView::EventType type) {
if (type != PageView::EventType::TURNING) return;
});
In this code s_pageView refers to studio PageView Container. Anyone knows how i can fix this?