Uploaded image for project: 'Titanium SDK/CLI'
  1. Titanium SDK/CLI
  2. TIMOB-17035

BlackBerry: ScrollView:EventListener-click event does not fire

    Details

    • Type: Bug
    • Status: Closed
    • Priority: High
    • Resolution: Fixed
    • Affects Version/s: Release 3.3.0
    • Fix Version/s: None
    • Component/s: BlackBerry
    • Environment:

      Description

      To reproduce

      1. Create the default app and replace app.js with the code below

      var 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 for BB device
      3. Scroll view outside labels and observe the console output

      Actual result

      no output

      Expected result

      similar to this

      [INFO] {"x":694,"y":598,"source":{}}
      

      output in the console which indicates the coordinates of your touch on the scrollview

      Note

      changing 'click' to 'touchstart'

      will fire

      [INFO] {"type":"touchstart","x":294,"y":401,"source":{}}
      [INFO] {"type":"touchstart","x":290,"y":439,"source":{}}
      [INFO] {"type":"touchstart","x":292,"y":397,"source":{}}
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                penrique Pedro Enrique (Inactive)
                Reporter:
                oromero Olga Romero
              • Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Backbone Issue Sync

                  • Titanium SDK/CLI <> Titanium Mobile
                    Synced with:
                    TIMOB-18758
                    Sync status:
                    ERROR
                    Last received:
                    Last sent:

                    Git Integration