Mouse Wheel Event Issue

  • Thread starter Thread starter ML
  • Start date Start date
M

ML

I am trying to use the mouse wheel event on a numeric input box to allow the
use to scroll to inc/dec the value by 1. The issue I am having is that the
delta value returned seems to be off. From my understanding the delta is
the number of detents the mouse has moved. The standard detent is
supposedly 120 for one notch of the wheel, however when I turn the wheel 1
click I get 240. Is there someway to determine the actual detent setting so
that I can in turn set the code to handle one wheel turn notch as a value of
1?
 
It seems my mouse is actually firing the wheel event twice for a single
detent.
Is this controlled by the user's mouse settings and if so is there anyway to
override this in an app to ensure it only fires once?
 
Hi

In the Control Panel/ Mouse utility, there is tab about wheel which will
change the behavior of mouse.
This may vary depend on what mouse, you are using, also I think this will
heavily depend on the mouse driver usually developped by the mouse
manufacture.

I think you may try to contact your mouse manufacture for consulting the
behavior about the driver shipped with the mouse.

Best regards,

Peter Huang
Microsoft Online Partner Support

Get Secure! - www.microsoft.com/security
This posting is provided "AS IS" with no warranties, and confers no rights.
 
This is with a MS Optical Intellimouse. I tried changing the settings in
the control panel but had no effect. One detent on the wheel always seems
to fire the mouse wheel event twice.
 
Hi,

From you description, I assume you monitor the mouse_wheel event in the
spyxx tool.
Based on my test with the windows explorer, one delta will fire one
mouse_wheel message. But there may be other possibility may change the
behavior.
e.g. mouse driver, mouse utility or you test on a specified program.
Have you installed any mouse utility tool?e.g. Logitech or else.

To isolate the problem, I think we may try to plug the mouse into another
fresh installed machine to see if the problem persists.(Please tested on
windows explorer).
If yes, I think most possibility is that there is something with the
mouseself, you may try to contact your mouse vendor to change a new one.

If you still have any concern, please feel free to post here.

Best regards,

Peter Huang
Microsoft Online Partner Support

Get Secure! - www.microsoft.com/security
This posting is provided "AS IS" with no warranties, and confers no rights.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top