Project: titanium
Issue TIMOB-19044: Windows: Accessing a sliders value always returns 0
h5.Description When accessing a sliders value the value returned is always 0 {code} var win = Ti.UI.createWindow({backgroundColor: 'red'}); var lbl = Ti.UI.createLabel({ text: 'Value is ', color: 'black', width: 150 }); var slider = Titanium.UI.createSlider({ top: 80, width: '80%' }); slider.addEventListener('change', function(e) { lbl.text = 'Value is ' + e.value; }); lbl.addEventListener('click', function(){ alert(slider.value); }); win.add(lbl); win.add(slider); win.open(); {code} h5.Steps To Reproduce 1. Add the above code to an existing app.js 2. Build the device or emulator 3. Move the slider 4. Tap the label h5.Actual Result The value returned is 0 h5.Expected Result The value returned should match the label displaying the value
Story points: 5