-1

Is there a possibility that you only can scroll with the scrollbar in a div and not with the scrollwheel on your mouse?

I prefer that on an one page website.

2 Answers2

1

You can use the following code:

function stop() {
    return false;
}

document.onmousewheel = stop;
jacob
  • 3,507
  • 2
  • 21
  • 26
0

You could easily do a bind on mousewheel scroll and disable it.

$("#menu").bind("mousewheel", function() {
    return false;
});

I'd suggest trying to google your question first, as the answer was pretty easy to find, in fact there's another question here

Community
  • 1
  • 1
Hybrid web dev
  • 328
  • 4
  • 15