Commit 7bc02c9d authored by louyuqi's avatar louyuqi

scroll

parent 584eb0ae
...@@ -30,7 +30,7 @@ const initBScroll = (el:HTMLElement) => { ...@@ -30,7 +30,7 @@ const initBScroll = (el:HTMLElement) => {
scrollX: false, scrollX: false,
momentum: true, momentum: true,
scrollY: true, scrollY: true,
bounce: false, bounce: true,
stopPropagation: true, stopPropagation: true,
}) })
return res return res
...@@ -55,7 +55,7 @@ export const NewsScrollView = (props: ScrollViewType) => { ...@@ -55,7 +55,7 @@ export const NewsScrollView = (props: ScrollViewType) => {
return ( return (
<div className=" h-full overflow-hidden -translate-x-[200px]" ref={wrapRef}> <div className=" h-full overflow-hidden ml-[-200px]" ref={wrapRef}>
{children} {children}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment