In this demo I move the coordinates to the edge of the screen / corner.
When I change the size of the browser window while this demo is running - the writing / drawing direction is reversed with respect to both axes (on a separate page and during editing). Only the lower left corner does not have this disorder.
I think this is a bug in the MicroStudio engine.
Firefox browser version 101.