View Single Post
Old 04-09-2009, 10:02 AM   #1
cc_
Human being with feelings
 
Join Date: Mar 2009
Posts: 256
Default IPlug scrollwheel

The scrollwheel doesn't work very well in IPlug. The problem is that it rounds the values to an integer, and scrollwheels can generate fractional values (mine seems to do 1/3 per detent), more details here:
http://blogs.msdn.com/oldnewthing/ar.../07/54615.aspx

Both IGraphicsWin and IGraphicsCocoa seem to suffer the same problem.

The result is that if you turn the scroll wheel slowly each click gets rounded to 0 and the control never moves. You have to turn it quickly enough that several clicks (3 in my case) arrive at once to get the control to move.

I'm not sure if the best answer is to accumulate until you get a whole number (as they do in the link above), or pass the fractional values on to the controls as a double.
cc_ is offline   Reply With Quote