Hi Duncan,
I think it has to do with positioning the slider pixelwise.
Anyhow you would not want to run the a sophisticated machine from the readings of the slider, still I can see that it is puzzling if you want to use the value.
if you use the following code you adjust the precise numeric value when the slider is moved in adjusting it to 1 decimal and then your test works as well.
Code: Select all
on mousedown
put "Find 56.2" into the field 1
end mousedown
on scrollbarDrag pScrollValue
set the thumbposition of me to round (pScrollValue,1)
end scrollbarDrag
on mouseup
put the thumbposition of me into the field 1
put the thumbposition of me + 1 into the field 2
put the thumbposition of me + 1 - 1 into the field 3
if the thumbposition of me = 56.2 then
put "Pass" into the field 4
else
put "Fail" into the field 4
end if
end mouseUp
the 'on ScrollbarDrag' reacts to the movement of the slider and sets it to a position to one decimal precisely. That is then the real value of the scrollbar, not a rounded one with hidden decimals.
Apparently Rev internally tries to keep track of the scrollbarposition as precisely as possible. Think of the task for Rev to position the scrollbar. You can choose a wide range of start values (even negative ones) and end values, still Rev has to visually position the slider, the scrollbar can have widely varying sizes, still the scrollbar has to produce a plausible numeric value and a precise position.
To me it is not surprising the Rev uses internally a higher degree of precision then it shows.
That all said (if it makes sense at all) dont let the scrollbar problem be the main point in judging Rev.
regards
Bernd