flixel
flixel copied to clipboard
Failing FlxMouseEventManager unit tests on HTML5
The unit tests for FlxMouseEventManager
are failing on HTML5:
The tests in question were added by #2110.
@MSGhero I think I pinged you before about this, but I don't remember if you had a chance to look into it yet / came to any conclusions about why it's failing specifically on HTML5?
FlxG.scaleMode.scale
is 0,0 on HTML5 and non-zero on Neko during the test, if that reminds you of anything relevant. Removing the scale
parts of setGlobalScreenPositionUnsafe
in FlxPointer makes those five pass on HTML5, so there's some div by 0 stuff going on.
stageWidth
and stageHeight
are 0 on HTML5 (in FlxG.init()
). Very briefly diving into Stage.hx, window.width
is 0 only on HTML5, which I guess makes it a Lime thing.