lichtungsgnarr / controlp5

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

Textarea scroll set and get are mutually inconsistent #72

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Construct a scrollable textarea
2. Monitor the value returned by getScrollPosition()
3. Try setting the same value by scroll()

What is the expected output? What do you see instead?
One would expect that if getScrollPosition() returns eg. 0.25, setting 
scroll(0.25) would result in the same position. However, setting to "0" results 
in getting back "1" and viceversa (direction of logic is reversed between the 
two functions: 0.25 for one is 0.75 for the other). 

What version of the product are you using? On what operating system?
Processing 2.0b6, ControlP5 2.0.3 (79?), WinXP

Original issue reported on code.google.com by attila.a...@gmail.com on 21 Jan 2013 at 2:34

GoogleCodeExporter commented 9 years ago

Original comment by soj...@gmail.com on 22 Jan 2013 at 8:21