ScrollFix is a Node plugin that can be used to stop scroll events from escaping an inner scroll area when the scroll reaches the bottom of the area
ScrollFix is a simple Node plugin that prevents mousewheel events inside the host node from bubbling up to parent nodes if the scroll has reached the bottom of the host node. This fixes an issue commonly seen in websites where the user scrolls an inner-scroll area but then the whole page moves as the scroll reaches the bottom of the inner-scroll area.
{{>getting-started}}To use the module simply plug it onto a node that will show scrollbars:
``` ```ScrollFix works by attaching a MouseWheel event listener to the document.body by default. It does this whenever your mouse enters the host node. If you wish to have ScrollFix listen on a different element than the document body then you can use the `target` attribute. It is unlikely you'll need to do this, but just in case here's how:
``` ```