[TIMOB-24088] Windows Phone : The scroll event for ScrollView does not have x/y cordinates
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | High |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2016-12-09T22:27:33.000+0000 |
Affected Version/s | Release 6.0.0 |
Fix Version/s | n/a |
Components | Windows |
Labels | n/a |
Reporter | Neha |
Assignee | Kota Iguchi |
Created | 2016-08-24T10:39:49.000+0000 |
Updated | 2018-08-06T17:57:47.000+0000 |
Description
Hi,
I want to trigger an event when 50% of the scroll view has been scrolled. I am able to achieve this by adding event listener for scroll event for scrollview and fetching the "y" cordinate from the event object. But th value is null in case of windows phone.
Sample Code :
index.js
$.scrollView.addEventListener('scroll', function(e) {
Ti.API.info(e.y);
});
$.indexWindow.open();
index.xml
index.tss
".listView" :{
top : "0%",
align:"center",
backgroundColor : "white" ,
width : '100%',
height : "110.5dp"
}
".label":{
color: "black",
left : "16.25dp",
width : "80%",
font: {
fontFamily:'Roboto-Light',
fontSize: '27.5dp'
},
textAlign:Ti.UI.TEXT_ALIGNMENT_LEFT,
verticalAlign : Ti.UI.TEXT_VERTICAL_ALIGNMENT_CENTER
}
https://github.com/appcelerator/titanium_mobile_windows/pull/900
Cleaning up older fixed tickets from 2016 and earlier. If this ticket should not have been closed, please reopen it.