[TIMOB-5679] MobileWeb: Event 'scroll' does not works on tableView
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Medium |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2011-08-19T05:04:48.000+0000 |
Affected Version/s | n/a |
Fix Version/s | n/a |
Components | MobileWeb |
Labels | n/a |
Reporter | Misha Vasko |
Assignee | Andrew Kulinich |
Created | 2011-08-18T06:05:39.000+0000 |
Updated | 2017-03-09T20:09:02.000+0000 |
Description
Event 'scroll' does not works on tableView.
Example:
var win = Ti.UI.currentWindow;
win.backgroundColor = '#EEE';
var row1 = Ti.UI.createTableViewRow({title: 'Row 1'});
var row2 = Ti.UI.createTableViewRow({title: 'Row 2'});
var row3 = Ti.UI.createTableViewRow({title: 'Row 3'});
var row4 = Ti.UI.createTableViewRow({title: 'Row 4'});
var view = Ti.UI.createView({
backgroundColor:'red',
width: 10,
height: 10,
left: 10,
bottom: 2
});
row2.add(view);
var data = [row1, row2, row3, row4];
var tableView = Ti.UI.createTableView({
width: 300,
height: 150,
top: 70,
left: 10,
backgroundColor: '#AAA',
data:data
});
var closeButton = Ti.UI.createButton({
title:'Close Window',
height:50,
width:140,
fontSize: 16,
top:10,
left:90
});
closeButton.addEventListener('click', function(){
Titanium.UI.currentWindow.close();
});
win.add(closeButton);
win.add(tableView);
tableView.addEventListener('scroll',function(){
alert('scrolling');
console.log('scrolling');
});
Closing ticket as fixed.