Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-25239] Windows: Problem with touchEnabled and styling on runtime

GitHub Issuen/a
TypeBug
PriorityHigh
StatusClosed
ResolutionInvalid
Resolution Date2017-09-14T02:22:02.000+0000
Affected Version/sn/a
Fix Version/sn/a
ComponentsWindows
Labelsn/a
ReporterNeeraj Mishra
AssigneeKota Iguchi
Created2017-09-06T19:56:16.000+0000
Updated2017-09-14T02:22:02.000+0000

Description

Problem Description:

We were trying to edit an element during runtime that has a property of "touchEnabled: false" but the changes are not taking effect.

Sample Application:

Attached.

Steps to Reproduce:

1. Run the attached app. 2. click on the label 2. You will see, the second view changes it's color but first one does not(this view has "touchEnabled: false" property set in tss)

Note: Testing it on iOS works fine.

Attachments

FileDateSize
index.js2017-09-06T19:56:08.000+0000170
index.tss2017-09-06T19:56:05.000+0000357
index.xml2017-09-06T19:56:01.000+0000223

Comments

  1. Kota Iguchi 2017-09-13

    I think this should be fixed on 6.2.0. Could you try following code on 6.2.0 to see if it works?
       var win = Ti.UI.createWindow({ backgroundColor: 'green' }),
           view1 = Ti.UI.createView({ top: 100, width: 40, height: 40, backgroundColor: 'lightblue', touchEnabled: true }),
           view2 = Ti.UI.createView({ top: 150, width: 40, height: 40, backgroundColor: 'lightblue', touchEnabled: false });
       
       win.addEventListener('click', function () {
           view1.backgroundColor = 'yellow';
           view2.backgroundColor = 'yellow';
       });
       
       win.add(view1);
       win.add(view2);
       
       win.open();
       
  2. Neeraj Mishra 2017-09-13

    [~kiguchi] : Interesting, it indeed worked when I tried with 6.2.0.v20170906064110 and used the customer's app to test it and it changed the color of both views irrespective of touchEnabled value.
  3. Kota Iguchi 2017-09-14

    Awesome, closing this.

JSON Source