Hi,
I found in another post by @Lely this JS code to manage the weird accordion scrolls when an item is opened while another one’s closing automatically.
jQuery(document).ready(function($) {
$('.x-acc-header').unbind().on('click', function(){
var $this = $(this);
setTimeout(function() {
$('html, body').animate({
scrollTop: $this.offset().top
}, 500);
}, 100);
});
});
From Mobile, it does work fine if I browse the different items from top to bottom, but when I tap on the 6th item after tapping the 5th and then back to 6th (for example), something really weird happen that I don’t understand.
Here’s the page
https://demo.strategaconsulting.biz/industries/
This happens even on other pages, which make me think there’s something odd with the JS code but I’m not too much into JS, so I dunno how to solve it.
Thanks for your help
Cheers
Alessandro