danbernier / controlp5

Automatically exported from code.google.com/p/controlp5
0 stars 1 forks source link

no change value with knop when moving mouse in y-axis #14

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. create knop with method addKnob("test", 0, 5, 10, 10, 40);
2. change value by clicking on the knop and holding mouse pressed
3. try change value when moving mouse in y-axis (and mouse pressed)

What is the expected output? What do you see instead?
the value should change when moving mouse in x- and y-axis (like in earlier 
versions)

What version of the product are you using? On what operating system?
0.5.4 release 10/05/2010 (latest on projekt-homepage)

Please provide any additional information below.

Original issue reported on code.google.com by maigra...@googlemail.com on 1 Feb 2011 at 3:59

GoogleCodeExporter commented 9 years ago
with current versions of controlP5, knobs can only be adjusted by either moving 
the mouse along the x-axis (default) or y-axis (use 
setDragDirection(Controller.HORIZONTAL or Controller.VERTICAL)). changes when 
moving the mouse in both directions at the same time have been removed due to 
conflicts with other features.

Original comment by soj...@gmail.com on 6 Feb 2011 at 7:42

GoogleCodeExporter commented 9 years ago
suggestion because i think it is important to set the value when moving mouse 
in x AND y-axis:

calculate angle between mouse position and center point of the knop. set the 
value of the knop according to that angle. This should not conflict any other 
feature.

Original comment by maigra...@googlemail.com on 7 Feb 2011 at 12:48