Description
When using the scrollend event, the currentPage event is always set to 0, it should be the index of the currently visible view
var win = Ti.UI.createWindow();
var view1 = Ti.UI.createView({ backgroundColor:'#123' });
var view2 = Ti.UI.createView({ backgroundColor:'#246' });
var view3 = Ti.UI.createView({ backgroundColor:'#48b' });
var scrollableView = Ti.UI.createScrollableView({
views:[view1,view2,view3],
showPagingControl:true
});
scrollableView.addEventListener('scrollend', function(e) {
console.log(e.currentPage)
})
win.add(scrollableView);
win.open();
Steps to reproduce
Add to an existing app.js and build for Windows
Scroll the view
Actual
When finishing scrolling the currentPage property is always 0
Expected
currentPage property should be index of the current view
https://github.com/appcelerator/titanium_mobile_windows/pull/1128 CR passed.
Tested on SDK 7.0.0.v20171116132144 installed from CLI. Fix is verified.