[TIMOB-14020] BlackBerry : Click event is not working on view & scroll view
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | High |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2013-07-23T09:42:23.000+0000 |
Affected Version/s | Release 3.1.1, Release 3.2.0 |
Fix Version/s | 2013 Sprint 11 BB, 2013 Sprint 11, Release 3.1.1, Release 3.2.0 |
Components | BlackBerry |
Labels | module_scrollView, module_view, qe-testadded, sdk-bb |
Reporter | Lokesh Choudhary |
Assignee | Pedro Enrique |
Created | 2013-05-30T00:21:40.000+0000 |
Updated | 2014-06-19T12:42:37.000+0000 |
Description
Description:
1. Create an app got BB suing the code below:
ar win = Ti.UI.createWindow({
backgroundColor: 'white'
});
var scrollView = Ti.UI.createScrollView({
backgroundColor: 'white',
layout: 'vertical',
contentWidth: Ti.UI.FILL,
contentHeight: Ti.UI.SIZE
});
for(var i = 0; i < 20; i++) {
var btn = Ti.UI.createButton({
top: 10,
title: 'Hello'
});
scrollView.add(btn);
}
win.add(scrollView);
scrollView.addEventListener('click', function(e){
Ti.API.info(JSON.stringify(e));
});
win.open();
2. Build and run the app on BB simulator/device
Actual Result:
1. The click event does not work on a scroll view
Expected Result:
1. The click event should work on a scroll view
I am able to see this issue with view too & not just scroll view.
PR: https://github.com/appcelerator/titanium_mobile_blackberry/pull/62
Back port PR to 3.1.X https://github.com/appcelerator/titanium_mobile_blackberry/pull/64
Verified the fix & the click events work as expected for view & scrollview. Environment: Ti Studio : 3.1.1.201305302344 Ti BB SDK : 3.1.1.v20130531143904 Mac OSX : 10.8.2 Alloy : 1.1.3-alpha CLI - 3.1.1-alpha win 7 Win 8 Z10 BB simulator : 10.0.10.822 Z10 device running 10.0.10.88 Q10 Simulator : 10.1.0.1720 Q10 Dev alpha C device running 10.1.0.138
Reopening just to update label.
Updated label. Closing as Fixed. Verified with environment: Studio: 3.1.2.201307191853 Titanium SDK:3.1.2.v20130718094558 acs:1.0.3 alloy:1.1.3 npm:1.3.2 titanium:3.1.1 titanium-code-processor:1.0.1 OS: OSX 10.8 Device:Blackberry-Z10(v 10.0.10.261) blackberry SDK: 10.1.0.1020 Click event working fine for both views and scrollView