Monday, August 21, 2006

Mouse wheel programming in JavaScript


Web applications are becoming more and more like “normal” desktop applications. Of course, they are more and more functional, but smooth user interface acts the primary role. So we have drag and drop, auto completion, and much more. Many of those nice features got possible only with help of AJAX.
          This page, however, is not about AJAX (or any other buzzword). It is about rather simple user input method -- mouse wheel. I believe it would now be difficult to find a mouse without wheel. Vast majority of users are used to the wheel as a control for scrolling in lists, zooming etc. Rather few web applications, however, make smart use of mouse wheel. This page is to provide you with general information about handling mouse wheel-generated events in JavaScript programming language.
         This page has annotated javascript code, which should explain the magic behind mouse wheel generated events.

Tags: , ,


0 Comments:

Post a Comment

<< Home