Closed julkue closed 6 years ago
try to set disableBodyScroll: false as it is the root of the evil !!!111
@gromo This seems to fix the issue partially – when scrolling to the total bottom the parent container will still scroll too (tested in Firefox and IE 11).
Anyway, could you please explain why the value should be false
instead of true
? I want to disable body scroll, therefore I would always set it to true.
Option disableBodyScroll is scroll emulation that handles mousewheel and touch, and emulation is always worse than native scrolling behavior, imho.
Assuming the following situation:
Now, scroll on these two elements with the mouse wheel. With the default browser scrollbar this works fine. See the following example; orange is the nested element, green the container:
Source for this example:
But when using jquery.scrollbar and scrolling with the mousewheel over the overlay also the parent container will be scrolled:
Source for this example:
Expected behavior: Only the scrollbar that is hovered by the mouse should be scrolled.