1.3.2 • Published 7 years ago

jquery-mousewheel-stop-propagation v1.3.2

Weekly downloads
3
License
MIT
Repository
github
Last release
7 years ago

$.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

NameDescriptionTypeDefault
wheelstopThe scroll was stopped.Functionnull
emulateNaturalScrollingEmulate natural scrolling for IEBooleantrue