| GitHub Issue | n/a |
| Type | Bug |
| Priority | Critical |
| Status | Closed |
| Resolution | Fixed |
| Resolution Date | 2012-04-04T12:43:48.000+0000 |
| Affected Version/s | Release 2.0.0 |
| Fix Version/s | Release 2.0.0, Sprint 2012-06 |
| Components | iOS |
| Labels | module_scrollview, qe-testadded |
| Reporter | Rick Blalock |
| Assignee | Vishal Duggal |
| Created | 2012-03-16T16:10:53.000+0000 |
| Updated | 2012-04-04T12:43:48.000+0000 |
Horizontal scrollViews are losing their click events. This seems to be an issue when passing commonJS modules through to other modules. Attached is an example.
Test Code
var win = Ti.UI.createWindow({ backgroundColor: '#fff' }); var scrollView = Ti.UI.createScrollView({ width:200, height:200, contentWidth:"auto", contentHeight:"auto", backgroundColor:'red' }) var label = Ti.UI.createLabel({ text:"Hi There", backgroundColor:'blue' }) label.addEventListener('click',function(e){ Ti.API.info('Label Clicked'); }) scrollView.addEventListener('click',function(e){ if (e.source == label) { Ti.API.info("ScrollView got label click"); } else { Ti.API.info('ScrollView Clicked'); } }) scrollView.add(label); win.add(scrollView); win.open();Closing bug. Horizontal scrollViews are working fine with their click events. Verified fix on: SDK build: 2.0.0.v20120319003254 Titanium Studio, build: 2.0.0.201203182248 Device: iphone4(iOS 5.1)
Reopening/closing to add/remove labels