Unfortunately, without being able to view your code directly, it's challenging to provide an accurate implementation. However, you might consider utilizing a solution similar to the following:
const container = document.getElementById("container");
container.addEventListener("wheel", (event) => {
event.preventDefault();
let deltaY = event.deltaY;
container.scrollTop += deltaY / n;
});
The function event.preventDefault is quite straightforward as it stops the default actions from occurring.
The property event.deltaY reveals the current scrolling speed. By adjusting the value of 'n', you can control how fast or slow the scrolling occurs.
Utilizing container.scrollTop allows you to update the scrolling speed accordingly.
It's uncertain if this aligns with your needs, but hopefully, it offers some assistance.