Count mouse wheel rotations

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • killbill123
    New Member
    • Apr 2008
    • 2

    Count mouse wheel rotations

    Hi,

    I want to count the mouse wheel rotations in javascript.

    I searched on google and only found that how to track delta -1 and +1 base on the up mouse wheel and down mouse wheel. I want how can i correctly count the wheel rotation in one mouse wheel or how to count wheel rotation.

    Need help please urgently....... ..??
  • acoder
    Recognized Expert MVP
    • Nov 2006
    • 16032

    #2
    I assume you've already seen this link and the linked mootools page.

    I'm not sure if you could reliably capture the amount of rotation, though you could try to estimate from the change/delta.

    Comment

    • killbill123
      New Member
      • Apr 2008
      • 2

      #3
      I already saw this LINK. Its only tell you how to get UP and Down. But nowhere i can find how many rotation in one Mouse wheel click.

      Comment

      • acoder
        Recognized Expert MVP
        • Nov 2006
        • 16032

        #4
        I'm not sure if you can, but you should get a normalized version across all browsers using the code. Perhaps you could test with that code what the delta values are in one rotation.

        Comment

        Working...