{"action":"created","issue":{"url":"https://api.github.com/repos/godotengine/godot/issues/26142","repository_url":"https://api.github.com/repos/godotengine/godot","labels_url":"https://api.github.com/repos/godotengine/godot/issues/26142/labels{/name}","comments_url":"https://api.github.com/repos/godotengine/godot/issues/26142/comments","events_url":"https://api.github.com/repos/godotengine/godot/issues/26142/events","html_url":"https://github.com/godotengine/godot/issues/26142","id":413186607,"node_id":"MDU6SXNzdWU0MTMxODY2MDc=","number":26142,"title":"Broken position on InputEventMouse* event passed from moving child Control with MOUSE_FILTER_PASS","user":{"login":"jabcross","id":6402237,"node_id":"MDQ6VXNlcjY0MDIyMzc=","avatar_url":"https://avatars0.githubusercontent.com/u/6402237?v=4","gravatar_id":"","url":"https://api.github.com/users/jabcross","html_url":"https://github.com/jabcross","followers_url":"https://api.github.com/users/jabcross/followers","following_url":"https://api.github.com/users/jabcross/following{/other_user}","gists_url":"https://api.github.com/users/jabcross/gists{/gist_id}","starred_url":"https://api.github.com/users/jabcross/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jabcross/subscriptions","organizations_url":"https://api.github.com/users/jabcross/orgs","repos_url":"https://api.github.com/users/jabcross/repos","events_url":"https://api.github.com/users/jabcross/events{/privacy}","received_events_url":"https://api.github.com/users/jabcross/received_events","type":"User","site_admin":false},"labels":[{"id":73330064,"node_id":"MDU6TGFiZWw3MzMzMDA2NA==","url":"https://api.github.com/repos/godotengine/godot/labels/bug","name":"bug","color":"ff2222","default":true},{"id":279097966,"node_id":"MDU6TGFiZWwyNzkwOTc5NjY=","url":"https://api.github.com/repos/godotengine/godot/labels/topic:core","name":"topic:core","color":"ffdd44","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/godotengine/godot/milestones/8","html_url":"https://github.com/godotengine/godot/milestone/8","labels_url":"https://api.github.com/repos/godotengine/godot/milestones/8/labels","id":3401519,"node_id":"MDk6TWlsZXN0b25lMzQwMTUxOQ==","number":8,"title":"3.2","description":"","creator":{"login":"mhilbrunner","id":1654763,"node_id":"MDQ6VXNlcjE2NTQ3NjM=","avatar_url":"https://avatars2.githubusercontent.com/u/1654763?v=4","gravatar_id":"","url":"https://api.github.com/users/mhilbrunner","html_url":"https://github.com/mhilbrunner","followers_url":"https://api.github.com/users/mhilbrunner/followers","following_url":"https://api.github.com/users/mhilbrunner/following{/other_user}","gists_url":"https://api.github.com/users/mhilbrunner/gists{/gist_id}","starred_url":"https://api.github.com/users/mhilbrunner/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mhilbrunner/subscriptions","organizations_url":"https://api.github.com/users/mhilbrunner/orgs","repos_url":"https://api.github.com/users/mhilbrunner/repos","events_url":"https://api.github.com/users/mhilbrunner/events{/privacy}","received_events_url":"https://api.github.com/users/mhilbrunner/received_events","type":"User","site_admin":false},"open_issues":996,"closed_issues":23,"state":"open","created_at":"2018-06-05T09:48:59Z","updated_at":"2019-02-22T23:49:38Z","due_on":null,"closed_at":null},"comments":0,"created_at":"2019-02-22T00:26:27Z","updated_at":"2019-02-23T00:10:24Z","closed_at":null,"author_association":"NONE","body":"**Godot version:**\r\n 3.1 beta 5\r\n\r\n**OS/device including version:**\r\nX11 64 bits\r\n\r\n**Issue description:**\r\nCalculation of `global_position` and `position` in the InputEventMouse subclasses is broken when the event is passed from a moving child Control.\r\n\r\n**Steps to reproduce:**\r\nOpen MRP, move the mouse and click on the smaller white square.\r\n[MRP.zip](https://github.com/godotengine/godot/files/2891844/MRP.zip)\r\n"},"comment":{"url":"https://api.github.com/repos/godotengine/godot/issues/comments/466591374","html_url":"https://github.com/godotengine/godot/issues/26142#issuecomment-466591374","issue_url":"https://api.github.com/repos/godotengine/godot/issues/26142","id":466591374,"node_id":"MDEyOklzc3VlQ29tbWVudDQ2NjU5MTM3NA==","user":{"login":"jabcross","id":6402237,"node_id":"MDQ6VXNlcjY0MDIyMzc=","avatar_url":"https://avatars0.githubusercontent.com/u/6402237?v=4","gravatar_id":"","url":"https://api.github.com/users/jabcross","html_url":"https://github.com/jabcross","followers_url":"https://api.github.com/users/jabcross/followers","following_url":"https://api.github.com/users/jabcross/following{/other_user}","gists_url":"https://api.github.com/users/jabcross/gists{/gist_id}","starred_url":"https://api.github.com/users/jabcross/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jabcross/subscriptions","organizations_url":"https://api.github.com/users/jabcross/orgs","repos_url":"https://api.github.com/users/jabcross/repos","events_url":"https://api.github.com/users/jabcross/events{/privacy}","received_events_url":"https://api.github.com/users/jabcross/received_events","type":"User","site_admin":false},"created_at":"2019-02-23T00:10:24Z","updated_at":"2019-02-23T00:10:24Z","author_association":"NONE","body":"Note: `assert(abs((event.global_position - get_global_mouse_position()).length()) < 10)` also fails.\r\n\r\nThe problem is that event.position has the position relative to the child control that passed the event, and not to the control thats calling `_gui_event`. And it looks like global_position is being calculated from that, because the above assert is also failing."}}
{"actor":{"display_login":"jabcross"}}