xxxxxxxxxx
// Get the element you want to scroll
const scrollElement = document.documentElement;
// Attach a scroll event listener
scrollElement.addEventListener('wheel', (event) => {
// Prevent the default scroll behavior
event.preventDefault();
// Calculate the amount of scrolling required
const scrollAmount = event.deltaY * 0.1; // Adjust the scrolling speed if needed
// Perform the scroll manually
scrollElement.scrollTop += scrollAmount;
});