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

Windows: ScrollView doesn't return correct event source

    Details

    • Type: Bug
    • Status: Closed
    • Priority: High
    • Resolution: Fixed
    • Affects Version/s: Release 7.3.0
    • Fix Version/s: Release 7.3.0
    • Component/s: Windows
    • Labels:
      None
    • Story Points:
      8
    • Sprint:
      2018 Sprint 13 SDK

      Description

      ScrollView doesn't return correct source when event listener is added to the scroll view's parent.

      var win = Ti.UI.createWindow({
          backgroundColor: 'green',
          width: 800,
          height: 600
      });
       
      var view = Ti.UI.createView({
          backgroundColor: 'red',
          width: '80%',
          height: '80%',
          id: 'view'
      }),
          view2 = Ti.UI.createScrollView({
              width: '70%', height: '70%', backgroundColor: 'blue', id: 'view2'
          }),
          view3 = Ti.UI.createView({
              width: '70%', height: '70%', backgroundColor: 'pink', id: 'view3'
          });
       
      view2.add(view3);
      view.add(view2);
       
      view.addEventListener('click', function (e) {
          alert(e.source.id);
      });
       
      win.add(view);
      win.open();
      

      Expected: When blue view is clicked, it should show "view2".

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                kiguchi Kota Iguchi
                Reporter:
                kiguchi Kota Iguchi
                Reviewer:
                Gary Mathews
                Tester:
                Samir Mohammed
              • Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Backbone Issue Sync

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

                    Git Source Code