[ 
https://issues.apache.org/jira/browse/FLEX-19055?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Justin Mclean resolved FLEX-19055.
----------------------------------

       Resolution: Fixed
    Fix Version/s: Apache Flex 4.10.0

Checked into develop branch.
                
> Sliders don't function with small intervals
> -------------------------------------------
>
>                 Key: FLEX-19055
>                 URL: https://issues.apache.org/jira/browse/FLEX-19055
>             Project: Apache Flex
>          Issue Type: Bug
>          Components: mx: Slider
>    Affects Versions: Adobe Flex SDK 3.3 (Release)
>         Environment: Affected OS(s): All OS Platforms
> Affected OS(s): All OS Platforms
> Browser: Firefox 3.x
> Language Found: English
>            Reporter: Adobe JIRA
>             Fix For: Apache Flex 4.10.0
>
>
> Steps to reproduce:
> 1.  Create an application containing a Slider (HSlider or VSlider)
> 2.  Set the minimum and maximum values on the Slider so that the interval is 
> very small (e.g. 0 and .001)
> 3.  Run the application and try to drag the slider thumb
>  
>  Actual Results:
>  The thumb doesn't move because the value always gets rounded to the minimum
>  
>  Expected Results:
>  The accuracy of the slider should only be limited by the accuracy of 
> floating point calculations
>  
> The problem is very plainly in Slider.as function 
> getValueFromX(xPos:Number):Number line 2283:
> // kill rounding error at the edges.
> if (v - minimum <= 0.002)
> {
>         v = minimum;
> }
> else if (maximum - v <= 0.002)
> {
>         v = maximum;
> } 
> I'm not sure why this code was put in there, but it feels like a hack.  We 
> should be able to use Sliders to adjust very precise values too!

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to