Slider seems disabled when added to page with initial value of 0
I have added a slider to my page (an otherwise unmodified version of the default app.js):
var slider1 = Titanium.UI.createSlider({
top: '150px',
left: '12px',
height: '50px',
width: '750px',
min: 0.0,
max: 10.0,
enabled: true,
value: 10.0
});
The above works fine, but if the initial 'value' value is 0.0, the slider cannot be dragged and generates no events.
What's going on?
1 Answer
-
Accepted Answer
Yes it's a bug. Set it to something like 0.05 and should work fine. They say for 1.4 it's fixed but i don't know if it's true or not.
https://appcelerator.lighthouseapp.com/projects/32238/tickets/1130-slider-breaks-when-value-is-set-to-0