flixel icon indicating copy to clipboard operation
flixel copied to clipboard

Failing FlxMouseEventManager unit tests on HTML5

Open Gama11 opened this issue 6 years ago • 2 comments

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?

Gama11 avatar May 27 '18 12:05 Gama11

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.

MSGhero avatar May 27 '18 22:05 MSGhero

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.

MSGhero avatar May 30 '18 00:05 MSGhero