diff --git a/src/components/Comments/index.module.scss b/src/components/Comments/index.module.scss index 8fa4d84..8995227 100644 --- a/src/components/Comments/index.module.scss +++ b/src/components/Comments/index.module.scss @@ -84,14 +84,8 @@ border-radius: 6px; cursor: pointer; animation: bg-blink var(--dur) infinite steps(10); - overflow: scroll; - -webkit-overflow-scrolling: auto; - - &::-webkit-scrollbar { - width: 0 !important; - height: 0 !important; - display: none; - } + transform: translateZ(0); + overflow: hidden; } @keyframes bg-blink { diff --git a/src/components/Comments/index.tsx b/src/components/Comments/index.tsx index e4ffc6a..e8eebb1 100644 --- a/src/components/Comments/index.tsx +++ b/src/components/Comments/index.tsx @@ -212,7 +212,6 @@ function CommentItem(props: { )} key={comment.id} id={`comment_id_${comment.id}`} - catchtouchmove > {/* game title */} diff --git a/src/game_pages/detail/components/Participants/index.module.scss b/src/game_pages/detail/components/Participants/index.module.scss index 0da4f50..5cd8ccd 100644 --- a/src/game_pages/detail/components/Participants/index.module.scss +++ b/src/game_pages/detail/components/Participants/index.module.scss @@ -87,14 +87,9 @@ // border: 0.5px solid rgba(255, 255, 255, 0.2); // background: rgba(255, 255, 255, 0.16); flex: 0 0 auto; - overflow: scroll; - -webkit-overflow-scrolling: auto; + transform: translateZ(0); position: relative; - &::-webkit-scrollbar { - width: 0 !important; - height: 0 !important; - display: none; - } + overflow: hidden; &::before { content: ""; diff --git a/src/game_pages/detail/components/Participants/index.tsx b/src/game_pages/detail/components/Participants/index.tsx index 1369537..64761bb 100644 --- a/src/game_pages/detail/components/Participants/index.tsx +++ b/src/game_pages/detail/components/Participants/index.tsx @@ -360,7 +360,6 @@ export default function Participants(props) { { if (!id) return; - const res = await DetailService.getDetail(Number(id)).catch(e => { + const res = await DetailService.getDetail(Number(id)).catch((e) => { // 跳转到空状态页面 (Taro as any).redirectTo({ - url: '/other_pages/emptyState/index', + url: "/other_pages/emptyState/index", }); return e; }); - + if (res.code === 0) { setDetail(res.data); fetchUserInfoById(res.data.publisher_id); @@ -188,7 +188,7 @@ function Index() { enhanced showScrollbar={false} scrollIntoView={scrollToTarget} - scroll-with-animation + // scroll-with-animation > {/* custom navbar */}