Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-5679] MobileWeb: Event 'scroll' does not works on tableView

GitHub Issuen/a
TypeBug
PriorityMedium
StatusClosed
ResolutionFixed
Resolution Date2011-08-19T05:04:48.000+0000
Affected Version/sn/a
Fix Version/sn/a
ComponentsMobileWeb
Labelsn/a
ReporterMisha Vasko
AssigneeAndrew Kulinich
Created2011-08-18T06:05:39.000+0000
Updated2017-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');
});

Comments

  1. Lee Morris 2017-03-09

    Closing ticket as fixed.

JSON Source