From 0484fd52d4d830b9e8e6d0bec8f004c4f996c453 Mon Sep 17 00:00:00 2001 From: fay Date: Wed, 1 Aug 2018 16:51:15 +0800 Subject: [PATCH] Revert "update" This reverts commit 90d9f3d32c953bec5ec361d00988a63ae63b4c30. --- src/core/func/dom.js | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/src/core/func/dom.js b/src/core/func/dom.js index 08ad22d6e..2b8e2e7a0 100644 --- a/src/core/func/dom.js +++ b/src/core/func/dom.js @@ -119,11 +119,9 @@ BI.extend(jQuery.fn, { }, __isMouseInBounds__: function (e) { - var offset2Body = this.get(0).getBoundingClientRect ? this.get(0).getBoundingClientRect() : this.offset(); - var width = offset2Body.width || this.outerWidth(); - var height = offset2Body.height || this.outerHeight(); - return !(e.pageX < offset2Body.left || e.pageX > offset2Body.left + width - || e.pageY < offset2Body.top || e.pageY > offset2Body.top + height); + var offset2Body = this.offset(); + return !(e.pageX < offset2Body.left || e.pageX > offset2Body.left + this.outerWidth() + || e.pageY < offset2Body.top || e.pageY > offset2Body.top + this.outerHeight()); }, __hasZIndexMask__: function (zindex) {