diff --git a/pages/CSS/overflow/overflow-visible-event.uvue b/pages/CSS/overflow/overflow-visible-event.uvue index 9a26482cf87d82b6b74ee88547122405a615aa94..6b08d69f16c478f3a79c69029fe62b8422a9eb5d 100644 --- a/pages/CSS/overflow/overflow-visible-event.uvue +++ b/pages/CSS/overflow/overflow-visible-event.uvue @@ -2,7 +2,7 @@ - + overflow=visible 父view(绿色),子view(红色),点击超出父view区域的部分也可触发事件。 @@ -104,10 +104,8 @@ if (uni.getSystemInfoSync().platform == 'android'){ ratio = uni.getSystemInfoSync().devicePixelRatio } - const systemInfo = uni.getSystemInfoSync() - const titleBarHeight = systemInfo.screenHeight - systemInfo.windowHeight this.jest_click_x = rect.x * ratio + 30 - this.jest_click_y = rect.bottom * ratio - 30 + this.jest_click_y = rect.bottom * ratio - 30 } }, jest_getParentRect() {