Skip to content

basselin/jquery-mousewheel-stop-propagation

Repository files navigation

$.mousewheelStopPropagation()

This jQuery plugin can prevent the scrolling of parent elements, or stop the propagation with the mousewheel event listener.

Compatibilities: Microsoft Internet Explorer, Google Chrome, Mozilla Firefox, Apple Safari...

Usage

<script src="http://code.jquery.com/jquery-3.1.1.min.js"></script>
<script src="mousewheelStopPropagation.js"></script>
<script>
$(function(){
	$('#my-element-with-overflow-auto').mousewheelStopPropagation();
});
</script>

Options

Name Description Type Default
wheelstop The scroll was stopped. Function null
emulateNaturalScrolling Emulate natural scrolling for IE Boolean true

About

This jQuery plugin can prevent the scrolling of parent elements, or stop the propagation with the mousewheel event listener.

Topics

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors