cc_
04-09-2009, 10:02 AM
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/archive/2003/08/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.
http://blogs.msdn.com/oldnewthing/archive/2003/08/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.