Articles and Tutorials
GSMouseWheel
Encapsulates browser differences in mouse wheel event handling.| Method Summary | |
| <static> Object | bind(<HTMLElement> subject, <Object> observer, <Function> func, <boolean> preventDefault) Binds the specified function to mouse wheel event's occurring on the subject. |
| Method Detail |
bind
<static> Object bind(<HTMLElement> subject, <Object> observer, <Function> func, <boolean> preventDefault)- Binds the specified function to mouse wheel event's occurring on the subject. The function will be run in the context of the observer. If the value of preventDefault is true the default action for the mouse wheel will not be run.
-
- subject - an HTML element that can generate mouse wheel events
- observer - the object that the handler function should be run in the context of
- func - the handler function to be executed each time a mouse wheel event is fired
- preventDefault - if true the default action for the mouse wheel will not be run.
Parameters:

