jQuery - lockscroll
The lockstate is jQuery plugin that provides you to lock or unlock scrolling of elements.
Usage
Lock scroll.
$('#element').lockscroll(true);
Lock vertical scroll.
$('#element').lockscroll(true, 'vertical');
Lock horizontal scroll.
$('#element').lockscroll(true, 'horizontal');
Unlock scroll.
$('#element').lockscroll(false);