This method has been effective for me, particularly on iOS devices. I have not yet tested it on Android.
During my experimentation, I observed that Owl Carousel adds the .owl-grab class to the slider when sliding with a mouse or touch input. Inspired by @Turnerj's code, I added .owl-grab to the existing code snippet.
Here is a helpful resource on disabling scrolling during touch movement on specific elements.
This solution also supports multiple sliders on the same page. It may not be perfect due to my limited experience with jQuery.
window.blockMenuHeaderScroll = false;
$(window).on('touchstart', function(e) {
if ($(e.target).closest('.owl-grab').length == 1) {
blockMenuHeaderScroll = true;
}
});
$(window).on('touchend', function() {
blockMenuHeaderScroll = false;
});
$(window).on('touchmove', function(e) {
if (blockMenuHeaderScroll) {
e.preventDefault();
}
});