mirror of
https://github.com/cocos/cocos4.git
synced 2026-12-02 00:22:43 +08:00
fix convertToLocationInView calculation bug for fireball/issues/8300 (#3166)
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user