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

Windows: Wrong event source after scaling with 2DMatrix

    Details

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

      Description

      Wrong source.id is returned after scaling the view with 2DMatrix.

      var win = Ti.UI.createWindow({
          backgroundColor: 'green',
          width: 800,
          height: 400
      });
       
      var view = Ti.UI.createView({
          backgroundColor: 'red',
          width: '80%',
          height: '80%',
          id: 'view'
      }), matrix = Ti.UI.create2DMatrix({
          scale: 0.5, anchorPoint: {x:0, y:0}
      }),
          view2 = Ti.UI.createView({
              width: '70%', height: '70%', backgroundColor: 'blue', id: 'view2'
          });
       
      view.add(view2);
       
      view.addEventListener('click', function (e) {
          alert(e.source.id);
      });
       
      var animation = Ti.UI.createAnimation({
          transform: matrix,
          duration: 3000
      });
       
      win.addEventListener('open', function () {
          view.animate(animation);
      });
       
      win.add(view);
      win.open();
      

      Expected: When clicking on the blue view, it should prompt "view2".

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                kiguchi Kota Iguchi
                Reporter:
                kiguchi Kota Iguchi
                Reviewer:
                Gary Mathews
              • Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Backbone Issue Sync

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

                    Git Source Code