diff --git a/core/utils/rect.js b/core/utils/rect.js index 318cf1d0d..85ade5388 100644 --- a/core/utils/rect.js +++ b/core/utils/rect.js @@ -62,7 +62,8 @@ Rect.prototype.contains = function(x, y) { * @return {boolean} Whether this rectangle intersects the provided rectangle. */ Rect.prototype.intersects = function(other) { - return !(this.left > other.right || this.right < other.left || + return !( + this.left > other.right || this.right < other.left || this.top > other.bottom || this.bottom < other.top); };