[TIMOB-25239] Windows: Problem with touchEnabled and styling on runtime
| GitHub Issue | n/a |
| Type | Bug |
| Priority | High |
| Status | Closed |
| Resolution | Invalid |
| Resolution Date | 2017-09-14T02:22:02.000+0000 |
| Affected Version/s | n/a |
| Fix Version/s | n/a |
| Components | Windows |
| Labels | n/a |
| Reporter | Neeraj Mishra |
| Assignee | Kota Iguchi |
| Created | 2017-09-06T19:56:16.000+0000 |
| Updated | 2017-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
| File | Date | Size |
| index.js | 2017-09-06T19:56:08.000+0000 | 170 |
| index.tss | 2017-09-06T19:56:05.000+0000 | 357 |
| index.xml | 2017-09-06T19:56:01.000+0000 | 223 |
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();[~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.
Awesome, closing this.