{"action":"opened","issue":{"url":"https://api.github.com/repos/HaxeFlixel/flixel/issues/1839","repository_url":"https://api.github.com/repos/HaxeFlixel/flixel","labels_url":"https://api.github.com/repos/HaxeFlixel/flixel/issues/1839/labels{/name}","comments_url":"https://api.github.com/repos/HaxeFlixel/flixel/issues/1839/comments","events_url":"https://api.github.com/repos/HaxeFlixel/flixel/issues/1839/events","html_url":"https://github.com/HaxeFlixel/flixel/issues/1839","id":152052451,"number":1839,"title":"FlxMouseEventManager.hx wrong behaviours when dealing with scaled FlxSprite","user":{"login":"alihassan0","id":10929015,"avatar_url":"https://avatars.githubusercontent.com/u/10929015?v=3","gravatar_id":"","url":"https://api.github.com/users/alihassan0","html_url":"https://github.com/alihassan0","followers_url":"https://api.github.com/users/alihassan0/followers","following_url":"https://api.github.com/users/alihassan0/following{/other_user}","gists_url":"https://api.github.com/users/alihassan0/gists{/gist_id}","starred_url":"https://api.github.com/users/alihassan0/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alihassan0/subscriptions","organizations_url":"https://api.github.com/users/alihassan0/orgs","repos_url":"https://api.github.com/users/alihassan0/repos","events_url":"https://api.github.com/users/alihassan0/events{/privacy}","received_events_url":"https://api.github.com/users/alihassan0/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-04-30T20:55:48Z","updated_at":"2016-04-30T20:55:48Z","closed_at":null,"body":"- **Flixel version:** Flixel Dev Version\r\n- **OpenFL version:** 3.6.1\r\n- **Lime version:** 2.9.1\r\n- **Affected targets:** Neko, Flash, Maybe others too\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.input.mouse.FlxMouseEventManager;\r\n\r\nimport flixel.input.mouse.FlxMouseEventManager;\r\n\r\nclass PlayState extends FlxState\r\n{\r\n\toverride public function create():Void\r\n\t{\r\n\t\tvar sprite = new FlxSprite(0,0);\r\n\t\tsprite.makeGraphic(Math.floor(FlxG.width/2),FlxG.height,0xFFFFFFFF);\r\n\t\tsprite.scale.set(.5,.5);\r\n\t\tsprite.updateHitbox();\r\n\t\tadd(sprite);\r\n\r\n\t\tFlxMouseEventManager.add(sprite ,null ,null ,onOver ,onOut);\r\n\t}\r\n\tpublic function onOver(sprite:FlxSprite)\r\n\t{\r\n\t\tsprite.color = 0xFFFF0000;\r\n\t}\r\n\tpublic function onOut(sprite:FlxSprite)\r\n\t{\r\n\t\tsprite.color = 0xFF00FF00;\r\n\t}\r\n}\r\n```\r\n\r\n________________________________\r\n\r\n**Observed behavior:**\r\nMouse overlaps The sprite even when it's not touching the scaled sprite.\r\n**Expected behavior:**\r\noverlapping should consider the sprite scaling as well. "}}