I want to make custom scroll for my div. I have write some code but it is not working fine. First of all it is on mousemove . This should be work like other scroll works. Fiddle
here is code
var height = $('.frm').height(),
overflowHeight= $('.overflow').height();
var finalheight = overflowHeight-height;
$('.tab').mousemove(function(e){
var top= parseInt($('.tab').css('top'));
var ac= top;
$('.overflow').css({top:-ac})
var y= e.pageY;
$(this).css({top:y})