Skip to content

Latest commit

 

History

History
29 lines (21 loc) · 778 Bytes

File metadata and controls

29 lines (21 loc) · 778 Bytes

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