Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-14020] BlackBerry : Click event is not working on view & scroll view

GitHub Issuen/a
TypeBug
PriorityHigh
StatusClosed
ResolutionFixed
Resolution Date2013-07-23T09:42:23.000+0000
Affected Version/sRelease 3.1.1, Release 3.2.0
Fix Version/s2013 Sprint 11 BB, 2013 Sprint 11, Release 3.1.1, Release 3.2.0
ComponentsBlackBerry
Labelsmodule_scrollView, module_view, qe-testadded, sdk-bb
ReporterLokesh Choudhary
AssigneePedro Enrique
Created2013-05-30T00:21:40.000+0000
Updated2014-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

Comments

  1. Lokesh Choudhary 2013-05-30

    I am able to see this issue with view too & not just scroll view.
  2. Pedro Enrique 2013-05-30

    PR: https://github.com/appcelerator/titanium_mobile_blackberry/pull/62
  3. Pedro Enrique 2013-05-31

    Back port PR to 3.1.X https://github.com/appcelerator/titanium_mobile_blackberry/pull/64
  4. Lokesh Choudhary 2013-05-31

    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
  5. Priya Agarwal 2013-07-23

    Reopening just to update label.
  6. Priya Agarwal 2013-07-23

    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

JSON Source