From 4c48098768a9d6299607d5a4c8ed4f5c6337f596 Mon Sep 17 00:00:00 2001 From: taohebin Date: Mon, 21 Oct 2024 12:28:49 +0800 Subject: [PATCH] =?UTF-8?q?update=EF=BC=9A=20=E5=8E=BB=E9=99=A4=E8=AD=A6?= =?UTF-8?q?=E5=91=8A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/CSS/overflow/overflow-visible-event.uvue | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/pages/CSS/overflow/overflow-visible-event.uvue b/pages/CSS/overflow/overflow-visible-event.uvue index 9a26482c..6b08d69f 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() { -- GitLab