Description
After transforming a slider, the touch events respond at the original position rather than the position resulting from the transformation.
Further more, in the test case the slider is rotated 90 degrees, but sliding the slider returns it to the pre transformed position.
Sample Code
var win = Ti.UI.createWindow({
backgroundColor : 'gray'
});
var slider = Titanium.UI.createSlider({
min : 1,
max : 10
});
slider.addEventListener("change",function(e){
alert(e.value);
});
slider.addEventListener("touchstart",function(e){
alert(e.value);
});
var t = Titanium.UI.create2DMatrix();
t = t.rotate(-90);
slider.setTransform(t); //if i comment this then everything is working fine in original state
win.add(slider);
win.open();
Steps to reproduce
1: Create a sample project.
2: Copy paste the above code in app.js file.
3: Launch it in android device or simulator running android version 4.1.x or 4.2.
4: Now you can see that if transformation is applied no event is getting fired.
Resolving as duplicate of linked issue. Please follow along there.
This issue can be closed. The customer implemented a work-around and they are Ok with that.