[TIMOB-24223] Universal Windows App (UWP) not getting the correct source.id
GitHub Issue | n/a |
Type | Bug |
Priority | High |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2017-02-03T16:27:15.000+0000 |
Affected Version/s | Release 6.0.0 |
Fix Version/s | Release 6.1.0 |
Components | Windows, Windows phone |
Labels | eng-priority, parity |
Reporter | Neeraj Mishra |
Assignee | Kota Iguchi |
Created | 2016-12-14T04:22:05.000+0000 |
Updated | 2017-02-09T22:10:55.000+0000 |
Description
Issue:
When wrapping inner views inside an outer view and adding a click event listener in the outer view, the feedback gotten from the click event object in regards to what the source of the click is, is incorrect IN WINDOWS.
REPRODUCE
1. Create a simple app like attached.
2. Run it on Windows, iOS and Android device.
3. Click on any of the four red squares
ACTUAL RESULT
See the console output prints _evt.source.id==win, even if you explicitly click within the red areas, whereas in iOS and Android, the console prints _evt.source.id==innerWrapper1, _evt.source.id==innerWrapper2 _evt.source.id==innerWrapper3 and _evt.source.id==innerWrapper4, respectively.
EXPECT RESULT
It should work well like it shows output on Android and iOS
Attachments
I was able to reproduce this. I think this is a parity issue, I remember we had similar issue before: TIMOB-23352
https://github.com/appcelerator/titanium_mobile_windows/pull/924
Verified fixed with the test case provided in https://github.com/appcelerator/titanium_mobile_windows/pull/924. Was able to see the correct source.id on the multiple views included in the test case. Before: !6.0.1.PNG|thumbnail! After: !6.1.0.v20170125103400.PNG|thumbnail! *Environment*
Reopening this, confirmed that this does not work when
View
is nested. Here's a sample code (classic).https://github.com/appcelerator/titanium_mobile_windows/pull/943
Hey [~kota] with the test code provided in https://github.com/appcelerator/titanium_mobile_windows/pull/943 I am still getting no source.id. !Screen Shot 2017-02-07 at 1.58.31 PM.png|thumbnail!
Verified fix with the test case provided in the description and with the test case provided in https://github.com/appcelerator/titanium_mobile_windows/pull/943. With the test case provided in https://github.com/appcelerator/titanium_mobile_windows/pull/943 I was able to see the
source.id
of a normalview
and a nestedview
. Before: (6.0.1.GA) !6.0.1.GA.PNG|thumbnail! After: (6.1.0.v20170209111025) !6.1.0.v20170209111025.PNG|thumbnail! !6.1.0.v20170209111025 n.PNG|thumbnail! With the test case provided in the description I was able to see the following in the console:*Environment*