Izzy004 Izzy004 - 4 months ago 6x
Javascript Question

Disable scrolling of a window in jQuery

I am using something like facebox, and want the main window scrolling bar to be disabled.
One catch though, There is a scroll bar inside the facebox component, which needs to be able to scroll.

What I am trying to fix is the following case:

when scrolling the internal scrolling element (inside facebox), when scroll ends, it scrolls the page down further.


do it in css:

body {
   overflow: hidden;

this would hide the scrollbar in the main window