javascript event wheelDelta

wheelDeltaNN n/a IE 5.5(Win) DOM n/a

Read-only

Returns an integer indicating which direction the user rolled the mouse wheel (for a mouse equipped with a wheel) during an onmousewheel event. A positive value means the user rolled the wheel toward the screen; a negative value means the opposite direction.

 
Example
 
if (evt.wheelDelta > 0) {
    ...
}
 
Value

Integer, typically 120 or -120.

 
Default

None.


794,Nickname,Homepage or email,Comments here,Add comment