scroll - Decrease number of lines per wheel notch of mouse on website -


i know can in windows through control-panel-->mouse-->wheel-->decrease/increase number of lines per notch wheel. if need thing website. wanted know possibility. can change number of lines scrolled in website per notch of mouse wheel if person opens website if windows setting saved 3 lines per notch, experiences 1 line per notch on website..and if possible how?? in advance..!!! ♥

edit:the base line of question smoothen scrolling of website "not through customising settings in browser or os" server side directly through coding , stuff..

you can catch onmousewheel events, manually scroll window , prevent default handling:

<html>  <head>  <script>  var mouse_wheel_gain = 1;  function onmousewheel() {    window.scrollto(0, document.body.scrolltop - event.wheeldelta/120 * mouse_wheel_gain);    var e = window.event;   e.returnvalue = false;   e.cancelbubble = true;   return false;  }  </script>  <head>  <body onmousewheel="onmousewheel()">  <script> (i=0;i<20;i++) document.write("<p>" + + " lorem ipsum dolor sit amet, consectetur adipisicing elit, sed eiusmod tempor incididunt ut labore et dolore magna aliqua. ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p>"); </script>  </body>  </html> 

Comments

Popular posts from this blog

matlab - Deleting rows with specific rules -

jquery - How would i go about shortening this code? And to cancel the previous click on click of new section? -