You can use mousewheel and DOMMouseScroll function to achieve this. Add the following jquery in your code.
$('.fixed_box').on('mousewheel DOMMouseScroll', function(e) {
var scrollTo = null;
if (e.type == 'mousewheel') {
scrollTo = (e.originalEvent.wheelDelta * -1);
}
else if (e.type == 'DOMMouseScroll') {
scrollTo = 40 * e.originalEvent.detail;
}
if (scrollTo) {
e.preventDefault();
$(this).scrollTop(scrollTo + $(this).scrollTop());
}
});
Explanation:
Here I have used two type of function because in jQuery 1.7+, the detail property is not available at the jQuery Event object. So, we need to use event.originalEvent.detail to for this property at the DOMMouseScroll event. This method is backwards-compatible with older jQuery versions.
Coming to inside part, It is actually getting the values of mousewheel height, it means when you use your mouse up or down how much height it should go up and down of particular div. I am using preventDafault function which will execute all the time so that the default action of this event will not be triggered. So that i am manually moving my scroll up and down using the bottom line calculation.
The if condition is checking whether we are getting value or not using mousewheel function. If we are not getting values, it will be a "null" value. So that bottom preventDefault and positioning won't work.
Have a Fiddle!!