{"action":"created","issue":{"url":"https://api.github.com/repos/openfl/openfl/issues/722","labels_url":"https://api.github.com/repos/openfl/openfl/issues/722/labels{/name}","comments_url":"https://api.github.com/repos/openfl/openfl/issues/722/comments","events_url":"https://api.github.com/repos/openfl/openfl/issues/722/events","html_url":"https://github.com/openfl/openfl/issues/722","id":90137307,"number":722,"title":"Mouse wheel / middle / right mouse events broken on native + legacy","user":{"login":"Gama11","id":2620907,"avatar_url":"https://avatars.githubusercontent.com/u/2620907?v=3","gravatar_id":"","url":"https://api.github.com/users/Gama11","html_url":"https://github.com/Gama11","followers_url":"https://api.github.com/users/Gama11/followers","following_url":"https://api.github.com/users/Gama11/following{/other_user}","gists_url":"https://api.github.com/users/Gama11/gists{/gist_id}","starred_url":"https://api.github.com/users/Gama11/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Gama11/subscriptions","organizations_url":"https://api.github.com/users/Gama11/orgs","repos_url":"https://api.github.com/users/Gama11/repos","events_url":"https://api.github.com/users/Gama11/events{/privacy}","received_events_url":"https://api.github.com/users/Gama11/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-06-22T15:48:39Z","updated_at":"2015-07-08T16:02:19Z","closed_at":null,"body":"```haxe\r\npackage;\r\n\r\nimport openfl.display.Sprite;\r\nimport openfl.events.MouseEvent;\r\n\r\nclass Main extends Sprite {\r\n\t\r\n\tpublic function new () {\r\n\t\tsuper();\r\n\t\t\r\n\t\topenfl.Lib.current.stage.addEventListener(MouseEvent.MOUSE_WHEEL, function (e) {\r\n\t\t\ttrace(e.delta);\r\n\t\t});\r\n\t}\r\n}\r\n```\r\n\r\nThis works fine (outputs -1 and 1 when scrolling) with next. With legacy however, there's no output.\r\n\r\nI know that this used to work a while back, but I don't have an exact version.\r\n\r\nTested on neko and cpp with lime 2.4.4 and openfl 3.1.0. HTML5 doesn't seem to be affected and works with both next and legacy."},"comment":{"url":"https://api.github.com/repos/openfl/openfl/issues/comments/119635791","html_url":"https://github.com/openfl/openfl/issues/722#issuecomment-119635791","issue_url":"https://api.github.com/repos/openfl/openfl/issues/722","id":119635791,"user":{"login":"brutalexcess","id":2475112,"avatar_url":"https://avatars.githubusercontent.com/u/2475112?v=3","gravatar_id":"","url":"https://api.github.com/users/brutalexcess","html_url":"https://github.com/brutalexcess","followers_url":"https://api.github.com/users/brutalexcess/followers","following_url":"https://api.github.com/users/brutalexcess/following{/other_user}","gists_url":"https://api.github.com/users/brutalexcess/gists{/gist_id}","starred_url":"https://api.github.com/users/brutalexcess/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brutalexcess/subscriptions","organizations_url":"https://api.github.com/users/brutalexcess/orgs","repos_url":"https://api.github.com/users/brutalexcess/repos","events_url":"https://api.github.com/users/brutalexcess/events{/privacy}","received_events_url":"https://api.github.com/users/brutalexcess/received_events","type":"User","site_admin":false},"created_at":"2015-07-08T16:02:19Z","updated_at":"2015-07-08T16:02:19Z","body":"http://prntscr.com/7qbbyb\r\n\r\nI got it working using OpenFL 3.1.1 by attaching the event to the stage, not a Sprite.\r\n\r\nHere is my code:\r\n\r\n    addEventListener(Event.ADDED_TO_STAGE, init);\r\n    }\r\n    private function init(e:Event):Void\r\n    {\r\n        stage.addEventListener(MouseEvent.MOUSE_WHEEL, function(e) { trace(\"wheel\"); } );\r\n        stage.addEventListener(MouseEvent.MOUSE_DOWN, function(e) { trace(\"down\"); } );\r\n    }\r\n\r\nI believe some events are triggered on a Sprite when that Sprite is active on the display list. If it's not the currently focused member, then you run into problems. Although I could be wrong."}}