diff --git a/src/overlay.js b/src/overlay.js index b942409a..5676769d 100644 --- a/src/overlay.js +++ b/src/overlay.js @@ -320,8 +320,7 @@ var rect = new $.Rect(position.x, position.y, size.x, size.y); var boundingBox = this._getBoundingBox(rect, viewport.getRotation(true)); position = boundingBox.getTopLeft(); - position = boundingBox.getTopLeft(); - + if (viewport.flipped){ position.x = (viewport.getContainerSize().x - position.x); }