{"action":"created","issue":{"url":"https://api.github.com/repos/kivy/kivy/issues/4477","repository_url":"https://api.github.com/repos/kivy/kivy","labels_url":"https://api.github.com/repos/kivy/kivy/issues/4477/labels{/name}","comments_url":"https://api.github.com/repos/kivy/kivy/issues/4477/comments","events_url":"https://api.github.com/repos/kivy/kivy/issues/4477/events","html_url":"https://github.com/kivy/kivy/issues/4477","id":166066547,"number":4477,"title":"touch.pos for on_touch_down / on_touch_up differ when not moving the mouse","user":{"login":"johanneshk","id":9724338,"avatar_url":"https://avatars.githubusercontent.com/u/9724338?v=3","gravatar_id":"","url":"https://api.github.com/users/johanneshk","html_url":"https://github.com/johanneshk","followers_url":"https://api.github.com/users/johanneshk/followers","following_url":"https://api.github.com/users/johanneshk/following{/other_user}","gists_url":"https://api.github.com/users/johanneshk/gists{/gist_id}","starred_url":"https://api.github.com/users/johanneshk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/johanneshk/subscriptions","organizations_url":"https://api.github.com/users/johanneshk/orgs","repos_url":"https://api.github.com/users/johanneshk/repos","events_url":"https://api.github.com/users/johanneshk/events{/privacy}","received_events_url":"https://api.github.com/users/johanneshk/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-07-18T10:46:31Z","updated_at":"2016-07-18T12:16:26Z","closed_at":null,"body":"I don't understand if this is a bug or a feature:\r\nhttps://gist.github.com/johanneshk/5bfa9a3983e81a20ed16ed1ff0d80257\r\nClick on the red square and observe the console prints: For me touch.pos for on_touch_down and on_touch_up differ. Why? If you replace ScrollView with RelativeLayout in L.48 it both positions coincide (imo the correct behavior). \r\nExample:\r\n\r\ndown <__main__.Element object at 0x7f9b507ebf50> touch.pos (21.0, **32.0**) to window (221.0, 562.0) True\r\nup <__main__.Element object at 0x7f9b507ebf50> touch.pos (21.0, **-448.0**) to window (221.0, 82.0) False\r\n\r\n\r\nThe y-coordinates is shifted in some way I don't understand."},"comment":{"url":"https://api.github.com/repos/kivy/kivy/issues/comments/233312453","html_url":"https://github.com/kivy/kivy/issues/4477#issuecomment-233312453","issue_url":"https://api.github.com/repos/kivy/kivy/issues/4477","id":233312453,"user":{"login":"johanneshk","id":9724338,"avatar_url":"https://avatars.githubusercontent.com/u/9724338?v=3","gravatar_id":"","url":"https://api.github.com/users/johanneshk","html_url":"https://github.com/johanneshk","followers_url":"https://api.github.com/users/johanneshk/followers","following_url":"https://api.github.com/users/johanneshk/following{/other_user}","gists_url":"https://api.github.com/users/johanneshk/gists{/gist_id}","starred_url":"https://api.github.com/users/johanneshk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/johanneshk/subscriptions","organizations_url":"https://api.github.com/users/johanneshk/orgs","repos_url":"https://api.github.com/users/johanneshk/repos","events_url":"https://api.github.com/users/johanneshk/events{/privacy}","received_events_url":"https://api.github.com/users/johanneshk/received_events","type":"User","site_admin":false},"created_at":"2016-07-18T12:16:26Z","updated_at":"2016-07-18T12:16:26Z","body":"Huh... so the position in the second 'down' (which is actually triggered upon button release) is correct. Unfortunately I don't really understand how touch events are digested by ScrollView (but in my opinion the culprit is somewhere in there). So we seem to have two issues:\r\n\r\n- why is another 'down' touch event dispatched when releasing the button\r\n- why is the position different"}}
{"actor":{"display_login":"johanneshk"}}