You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi,
is there a way to have a callback when a tocbot item is clicked?
I'm trying to trigger something when a link is clicked but it ignores it.
I tried directly with a selector:
$('.tocbot a').on('click', function(){
// Stuff I want to do
console.log('callback');
});
And I've also tried to use SmoothScroll callback option:
smoothScrollOptions: {
easing: 'easeOutQuart',
offset: 0,
speed: 600,
callback: function ( anchor, toggle ) {
// Stuff I want to do
console.log('callback');
}
},
None works. Is there an obvious way I'm missing?
Thanks
The text was updated successfully, but these errors were encountered:
Hi,
is there a way to have a callback when a tocbot item is clicked?
I'm trying to trigger something when a link is clicked but it ignores it.
I tried directly with a selector:
And I've also tried to use SmoothScroll callback option:
None works. Is there an obvious way I'm missing?
Thanks
The text was updated successfully, but these errors were encountered: