[TIMOB-11103] iOS: TableView - Touchmove event is not fired.
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Medium |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2012-12-18T20:49:27.000+0000 |
Affected Version/s | Release 2.1.3 |
Fix Version/s | Release 3.0.1, Release 3.1.0, 2012 Sprint 26 API, 2012 Sprint 26 |
Components | iOS |
Labels | core, module_tableview, parity, qe-ios090112, qe-review, qe-testadded |
Reporter | Anshu Mittal |
Assignee | Sabil Rahim |
Created | 2012-09-25T10:16:36.000+0000 |
Updated | 2013-01-10T03:51:25.000+0000 |
Description
Touchmove event is not fired.
This is not regression since the issue occurs as far as 2.1.0 GA also.
Steps to reproduce:
1. Create an app using the code below.
2. Launch the app.
3. Touch and move on any row.
Actual:
Touch start event is fired but touchmove event is not fired.
Expected:
Touch move event should also be fired successfully.
var win1 = Titanium.UI.createWindow({
backgroundColor:'#000',
layout:'vertical'
});
var MyListbox=Ti.UI.createTableView({backgroundColor:'#000'});
for (var i=1; (i <= 10); i++)
MyListbox.appendRow(Ti.UI.createTableViewRow({title:'Row '+i,color:"#666"}));
Ti.API.info('adding EventListener for touchstart');
MyListbox.addEventListener('touchstart',TchStart);
function TchStart(evt)
{
Ti.API.info('TchStart');
}
Ti.API.info('adding EventListener for touchmove');
MyListbox.addEventListener('touchmove',TchMove);
function TchMove(evt)
{
Ti.API.info('TchMove');
}
win1.add(MyListbox);
win1.open();
This is still happening on 2.1.3 RC2 The tableView touchmove event never fires, unless you create tableViewRows manually and add UILabels inside of them. Even when you do that, the touchmove event is only fired when you tap and move on top of the label, while the rest of the row never fires the touchmove events. This seems to be happening for a little while, so I think it is not a regression. It's absolutely important to solve this issue, specially for cases where we use a lateral navigation bar (facebook / path like) and we need to track events on the main window while this window contains a tableview. With this bug, we can never drag the view while it contains a tableView. There is a QA with testcases here: http://developer.appcelerator.com/question/135899/touchmove-event-on-tableview
PR pending https://github.com/appcelerator/titanium_mobile/pull/3560
3_0_X PR pending https://github.com/appcelerator/titanium_mobile/pull/3681
Tested with: SDK: 3.1.0.v20130109175536, 3.0.1.v20130109180643 Studio:3.0.1.201212181159 Touch move event is fired successfully.