I’m want to use SwipeBack: afterchange in my Framework7 app (in specific page) to stop setinterval. But when user swipe back, “swipe back” function doesn’t fire. Any suggestions?
My structure:
{
path: '/somepage/',
url: 'pages/somepage.html',
on: {
pageInit : function (e, route) {
setInterval etc...
}
},
swipeback:{
afterchange: function (event, page, interval1) {
console.log('stopints');
clearInterval(interval1);
}
}
}