Welcome, Guest. Please login or register. Did you miss your activation email?

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - triangle

Pages: [1]
1
Window / MouseWheel Delta Value
« on: January 15, 2010, 11:51:59 am »
Quote from: "Laurent"
The MSDN clearly states that the delta value given by the OS is a multiple of 120, that's why I divide by this value, so that one wheel step == 1 and not 120.


It actually says 'The high-order word indicates the distance the wheel is rotated, expressed in multiples or divisions of WHEEL_DELTA, which is 120', so we miss any events that are divisions of 120...

2
Window / MouseWheel Delta Value
« on: January 15, 2010, 12:43:30 am »
I have found that the mouse wheel is extremely unresponsive when using the delta provided by WindowImplWin32::ProcessEvent.

Removing the division by 120 in that function solves the problem and gives me smooth scrolling movement.

I am using a Microsoft Wireless Intellimouse Explorer 2.0, which I would presume is quite standard in operation.

There must be a reason for that seemingly arbitary value of 120, maybe a hardware issue?

Is anyone else using mouse wheel events to achieve smooth scrolling?  If so, did you also have to change the delta value?

Pages: [1]