HiDPI/Retina Screen Support?
Hi everybody,
I'm trying to make something that follows the current mouse position:
stage.addEventListener("stagemousemove", handleMouseMove);
cursor = new createjs.Shape(new createjs.Graphics().beginFill("#FF0000").drawCircle(0, 0, 30));
stage.addChild(cursor);
function handleMouseMove(e)
{
cursor.x = e.stageX;
cursor.y = e.stageY;
}
this works on the normal screen, but doesn't work on the HiDPI screen, it seems the stage mouse coordinator becomes 2x.
I'm using the latest Animate CC so it should have HiDPI support, does anyone knows why this does not work and how to solve it? Thanks.
Regards,
Chih-Wei