From 1434c1c4b43f7fd9139b41882a4d047a0827706d Mon Sep 17 00:00:00 2001 From: agan <agan@yazhai.co> Date: Fri, 18 Feb 2022 15:01:01 +0800 Subject: [PATCH] 提交 --- css/new/index.css | 4 ++-- newIndex.html | 8 ++++++++ 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/css/new/index.css b/css/new/index.css index 1ffd40a..c38d0b9 100644 --- a/css/new/index.css +++ b/css/new/index.css @@ -58,9 +58,9 @@ body { width: 5.347rem; height: 10.68rem; position: absolute; - top: 50%; + top: 5.4rem; left: 50%; - transform: translate(-50%, -50%); + transform: translateX( -50%); z-index: 10; } diff --git a/newIndex.html b/newIndex.html index 8ae86f9..b45ba55 100644 --- a/newIndex.html +++ b/newIndex.html @@ -196,6 +196,7 @@ if (curp == parr.length - 1) { return; } + touchB = false; curp++; if (curp == 2) { $('.wipeUp').hide(); @@ -205,6 +206,9 @@ $('.downloadBtn2').hide(); } $('.curpage').animate({ top: -(scrollH * curp) + 'px' }); + setTimeout(function(){ + touchB = true; + },1000) return; } if (ev.type == 'swipedown') { @@ -212,6 +216,7 @@ $(".page0 ul li").css({ "opacity": "0" }) return; } + touchB = false; curp--; if (curp == 2) { $('.wipeUp').hide(); @@ -221,6 +226,9 @@ $('.downloadBtn2').hide(); } $('.curpage').animate({ top: -(scrollH * curp) + 'px' }); + setTimeout(function(){ + touchB = true; + },1000) return; } }); -- libgit2 0.25.0