Scaling
In order to achieve support for Appleās Retina Display, Animate CC via createjs double the size of the canvas.
This value is recorded in stage.scaleX
and stage.scaleY
. In all cases, scaling is done proportionally in blink
and these two values will always be the same.
Example of detecting the X and Y coordinates and its scales
this.stop()
stage.enableMouseOver(20)
stage.on('stagemousemove', function (ev) {
console.log(ev.stageX, ev.stageY, stage.scaleX, stage.scaleY)
})