jQuery.fn.limitScrollToContainer=function(){var e=0;function t(t,i){var n=t.wheelDelta||t.originalEvent&&t.originalEvent.wheelDelta||-t.detail,o=null;"mousewheel"===t.type?o=-.5*n:"DOMMouseScroll"===t.type?o=-40*n:"touchmove"===t.type&&(o=10,t.originalEvent.touches[0].pageY>e&&(o=-10),e=t.originalEvent.touches[0].pageY),o&&(t.preventDefault(),jQuery(i).scrollTop(o+jQuery(i).scrollTop()))}jQuery(this)[0].addEventListener("mousewheel",function(e){t(e,this)},{passive:!1}),jQuery(this)[0].addEventListener("DOMMouseScroll",function(e){t(e,this)},{passive:!1}),jQuery(this)[0].addEventListener("touchmove",function(e){t(e,this)},{passive:!1})};