weimingtom / nekonme

Automatically exported from code.google.com/p/nekonme
0 stars 0 forks source link

Sign of MouseEvent.MOUSE_WHEEL delta is inverted #207

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?

var sprite = new Sprite();
sprite.graphics.beginFill(0xff0000);
sprite.graphics.drawRect(0, 0, 100, 100);
sprite.graphics.endFill();
sprite.addEventListener(MouseEvent.MOUSE_WHEEL, onMouseWheel);
addChild(sprite);

function onMouseWheel(event:MouseEvent)
{
    trace(event.delta);
}

What is the expected output? What do you see instead?
Expected (like in flash):
-1 - scrolling wheel to self
1 - scrolling wheel from self
Result:
1 - scrolling wheel to self
-1 - scrolling wheel from self

What version of the product are you using? On what operating system?
nme 3.2.0, target: windows, OS: Windows XP

Original issue reported on code.google.com by cse...@gmail.com on 12 Mar 2012 at 5:43

GoogleCodeExporter commented 9 years ago
Resolved (https://haxenme.atlassian.net/browse/NME-19)

Original comment by joshuagr...@gmail.com on 14 Mar 2012 at 1:45