{"action":"created","issue":{"url":"https://api.github.com/repos/NativeScript/NativeScript/issues/5976","repository_url":"https://api.github.com/repos/NativeScript/NativeScript","labels_url":"https://api.github.com/repos/NativeScript/NativeScript/issues/5976/labels{/name}","comments_url":"https://api.github.com/repos/NativeScript/NativeScript/issues/5976/comments","events_url":"https://api.github.com/repos/NativeScript/NativeScript/issues/5976/events","html_url":"https://github.com/NativeScript/NativeScript/issues/5976","id":334030118,"node_id":"MDU6SXNzdWUzMzQwMzAxMTg=","number":5976,"title":"Inconsistency between Android and iOS in touch event getX()","user":{"login":"Burgov","id":417674,"node_id":"MDQ6VXNlcjQxNzY3NA==","avatar_url":"https://avatars1.githubusercontent.com/u/417674?v=4","gravatar_id":"","url":"https://api.github.com/users/Burgov","html_url":"https://github.com/Burgov","followers_url":"https://api.github.com/users/Burgov/followers","following_url":"https://api.github.com/users/Burgov/following{/other_user}","gists_url":"https://api.github.com/users/Burgov/gists{/gist_id}","starred_url":"https://api.github.com/users/Burgov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Burgov/subscriptions","organizations_url":"https://api.github.com/users/Burgov/orgs","repos_url":"https://api.github.com/users/Burgov/repos","events_url":"https://api.github.com/users/Burgov/events{/privacy}","received_events_url":"https://api.github.com/users/Burgov/received_events","type":"User","site_admin":false},"labels":[{"id":203688365,"node_id":"MDU6TGFiZWwyMDM2ODgzNjU=","url":"https://api.github.com/repos/NativeScript/NativeScript/labels/backlog","name":"backlog","color":"ededed","default":false},{"id":203689226,"node_id":"MDU6TGFiZWwyMDM2ODkyMjY=","url":"https://api.github.com/repos/NativeScript/NativeScript/labels/bug","name":"bug","color":"ee0701","default":true},{"id":717907286,"node_id":"MDU6TGFiZWw3MTc5MDcyODY=","url":"https://api.github.com/repos/NativeScript/NativeScript/labels/good%20first%20issue","name":"good first issue","color":"7057ff","default":true},{"id":203690377,"node_id":"MDU6TGFiZWwyMDM2OTAzNzc=","url":"https://api.github.com/repos/NativeScript/NativeScript/labels/os:%20android","name":"os: android","color":"006b75","default":false},{"id":203688366,"node_id":"MDU6TGFiZWwyMDM2ODgzNjY=","url":"https://api.github.com/repos/NativeScript/NativeScript/labels/severity:%20medium","name":"severity: medium","color":"ff9933","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2018-06-20T11:10:34Z","updated_at":"2018-06-26T13:08:00Z","closed_at":null,"author_association":"NONE","body":"### Did you verify this is a real problem by searching the [NativeScript Forum](http://forum.nativescript.org) and the [other open issues in this repo](https://github.com/NativeScript/nativescript/issues)?\r\nyes\r\n\r\n### Tell us about the problem\r\nThe getX() method of the touch event on a scrollview yields different results in Android vs iOS if the scrollview is scrolled.\r\n\r\n### Which platform(s) does your issue occur on?\r\nBoth\r\n\r\n### Please provide the following version numbers that your issue occurs with:\r\nSee playground app\r\n\r\n### Please tell us how to recreate the issue in as much detail as possible.\r\nhttps://play.nativescript.org/?template=play-ng&id=74EbPd\r\n\r\n- scroll the scrollview to have the number 3 in the center of the view\r\n- tap on the 3\r\n- a touch handler will register the output of `event.getX()` on a component property `x`\r\n\r\nexample:\r\nin iOS the result is 602.5\r\nin Android the result is 173.05\r\n\r\nthe difference between the two is exactly equal to `scrollView.horizontalOffset`.\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/NativeScript/NativeScript/issues/comments/400301159","html_url":"https://github.com/NativeScript/NativeScript/issues/5976#issuecomment-400301159","issue_url":"https://api.github.com/repos/NativeScript/NativeScript/issues/5976","id":400301159,"node_id":"MDEyOklzc3VlQ29tbWVudDQwMDMwMTE1OQ==","user":{"login":"Burgov","id":417674,"node_id":"MDQ6VXNlcjQxNzY3NA==","avatar_url":"https://avatars1.githubusercontent.com/u/417674?v=4","gravatar_id":"","url":"https://api.github.com/users/Burgov","html_url":"https://github.com/Burgov","followers_url":"https://api.github.com/users/Burgov/followers","following_url":"https://api.github.com/users/Burgov/following{/other_user}","gists_url":"https://api.github.com/users/Burgov/gists{/gist_id}","starred_url":"https://api.github.com/users/Burgov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Burgov/subscriptions","organizations_url":"https://api.github.com/users/Burgov/orgs","repos_url":"https://api.github.com/users/Burgov/repos","events_url":"https://api.github.com/users/Burgov/events{/privacy}","received_events_url":"https://api.github.com/users/Burgov/received_events","type":"User","site_admin":false},"created_at":"2018-06-26T13:08:00Z","updated_at":"2018-06-26T13:08:00Z","author_association":"NONE","body":"I prefer the Android way. I want to know my position relative to the view, not the contents of it. I can add my touch event to the GridLayout if I want that behavior."}}
{"actor":{"display_login":"Burgov"}}