{"action":"closed","issue":{"url":"https://api.github.com/repos/HaxeFlixel/flixel/issues/1837","repository_url":"https://api.github.com/repos/HaxeFlixel/flixel","labels_url":"https://api.github.com/repos/HaxeFlixel/flixel/issues/1837/labels{/name}","comments_url":"https://api.github.com/repos/HaxeFlixel/flixel/issues/1837/comments","events_url":"https://api.github.com/repos/HaxeFlixel/flixel/issues/1837/events","html_url":"https://github.com/HaxeFlixel/flixel/issues/1837","id":151759396,"number":1837,"title":"FlxMouseEventManager doesn't respect scale for FlxExtendedSprite","user":{"login":"ashes999","id":18432,"avatar_url":"https://avatars.githubusercontent.com/u/18432?v=3","gravatar_id":"","url":"https://api.github.com/users/ashes999","html_url":"https://github.com/ashes999","followers_url":"https://api.github.com/users/ashes999/followers","following_url":"https://api.github.com/users/ashes999/following{/other_user}","gists_url":"https://api.github.com/users/ashes999/gists{/gist_id}","starred_url":"https://api.github.com/users/ashes999/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ashes999/subscriptions","organizations_url":"https://api.github.com/users/ashes999/orgs","repos_url":"https://api.github.com/users/ashes999/repos","events_url":"https://api.github.com/users/ashes999/events{/privacy}","received_events_url":"https://api.github.com/users/ashes999/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-04-28T22:40:24Z","updated_at":"2016-04-29T09:58:31Z","closed_at":"2016-04-29T09:58:30Z","body":"- **Flixel version:** 4.0.0\r\n- **OpenFL version:** 3.6.0\r\n- **Lime version:** 2.9.0\r\n- **Affected targets:** Neko (didn't test others)\r\n\r\n________________________________\r\n\r\n**Code snippet reproducing the issue**:\r\n\r\n```haxe\r\npackage;\r\n\r\nimport flixel.FlxG;\r\nimport flixel.FlxSprite;\r\nimport flixel.FlxState;\r\nimport flixel.text.FlxText;\r\nimport flixel.ui.FlxButton;\r\nimport flixel.math.FlxMath;\r\nimport flixel.input.mouse.FlxMouseEventManager;\r\nimport flixel.addons.display.FlxExtendedSprite;\r\nimport flixel.FlxObject;\r\n\r\nclass MenuState extends FlxState\r\n{\r\n\toverride public function create():Void\r\n\t{\r\n\t\tsuper.create();\r\n        \r\n        var s = new FlxExtendedSprite();\r\n        s.loadGraphic('assets/images/bush.png');\r\n        add(s);\r\n        s.setGraphicSize(32, 32);\r\n        s.updateHitbox();\r\n        \r\n        FlxMouseEventManager.add(s, clickHandler);\r\n\t}\r\n    \r\n    public function clickHandler(e:FlxObject)\r\n    {\r\n        trace(\"CLICK!\");\r\n    }\r\n\r\n\toverride public function update(elapsed:Float):Void\r\n\t{\r\n\t\tsuper.update(elapsed);\r\n\t}\r\n}\r\n```\r\n\r\n________________________________\r\n\r\n**Observed behavior:** Even though the sprite is shrunk to 32x32, clicking anywhere in a 64x64 area traces `CLICK!`\r\n**Expected behavior:** Clicks shouldn't fire outside of the scaled-down, 32x32 area\r\n\r\nNote: `bush.png` is 64x64 pixels\r\n\r\nGit repo: https://github.com/ashes999/flixel-scale-bug\r\n\r\n<bountysource-plugin>\r\n---\r\nWant to back this issue? **[Post a bounty on it!](https://www.bountysource.com/issues/33443376-flxmouseeventmanager-doesn-t-respect-scale-for-flxextendedsprite?utm_campaign=plugin&utm_content=tracker%2F254189&utm_medium=issues&utm_source=github)** We accept bounties via [Bountysource](https://www.bountysource.com/?utm_campaign=plugin&utm_content=tracker%2F254189&utm_medium=issues&utm_source=github).\r\n</bountysource-plugin>"}}