fix convertToLocationInView calculation bug for fireball/issues/8300 (#3166)

This commit is contained in:
Knox
2018-08-30 16:30:01 +08:00
committed by pandamicro
parent 37988424a2
commit c0509efb9a
+1 -1
View File
@@ -963,7 +963,7 @@ cc.js.mixin(View.prototype, {
let x = this._devicePixelRatio * (tx - relatedPos.left);
let y = this._devicePixelRatio * (relatedPos.top + relatedPos.height - ty);
if (this._isRotated) {
result.x = this._viewportRect.width - y;
result.x = cc.game.canvas.width - y;
result.y = x;
}
else {