Export to GitHub

controlp5 - issue #43

Slider with FLEXIBLE mode OR enabled tick marks can be set at the right value


Posted on Apr 23, 2012 by Grumpy Ox

What steps will reproduce the problem? 1. Run the attached code 2. Moving hours slider copy value to global slider ok 3. Moving global slider don't copy actual value to hours slider

What is the expected output? What do you see instead? Moving global slider should put the same value in hours slider

What version of the product are you using? On what operating system? Processing 2.05a, Windows 7 x64, Java 1.6

Please provide any additional information below. Not enabling tickMarks OR FLEXIBLE mode make things work as expected. Seems some kind of rounding problem.

Attachments

Comment #1

Posted on Jan 10, 2014 by Grumpy Rabbit

the rounding error persists in flexible mode as well. in addition, the tick marks do not extend the width of the slider.

cp5.addSlider("timerTickBar") .setPosition(45, 700) .setWidth(720) .setRange(50/1000.0, 120000/1000.0) .setValue(5000.0/1000.0) .setNumberOfTickMarks(240) .setSliderMode(Slider.FLEXIBLE);

Status: New

Labels:
Type-Defect Priority-Medium