hi,
I have applied the fix you did on my website to another website, but I still have the issue.
I have created this js file /templates/shaper_helixultimate/js/custom.js
and inside I have added this code :
jQuery(function($) {
$('.close-offcanvas, .offcanvas-overlay, .offcanvas-inner ul > li:not(.no-scroll) > a')
.on('click', function() {
$('body').removeClass('offcanvas-active');
});
$(document).on('click', '.offcanvas-menu a', function (event) {
var href = $(this).attr('href');
if ($(this).hasClass('close-offcanvas') || $(this).hasClass('no-close-offcanvas')) {
return;
}
if (href && href.indexOf('#') === 0 && href.length > 1) {
setTimeout(function() {
closeOffcanvas();
}, 150);
}
else if (href && href.indexOf('#') > -1 && !href.match(/^https?:\/\//)) {
var hashIndex = href.indexOf('#');
var currentPath = window.location.pathname;
var linkPath = href.substring(0, hashIndex) || currentPath;
if (linkPath === currentPath || linkPath === '' || linkPath === '/') {
setTimeout(function() {
closeOffcanvas();
}, 150);
}
}
});
$(window).on('hashchange', function() {
if ($('.offcanvas-init').hasClass('offcanvas-active')) {
closeOffcanvas();
}
});
});
but same problem : vertical scroll on web browser (chrome) disappears when an item menu is clicked.
see Hidden Content area for website link.
any idea why?
Thanks
L