Commit 7bc02c9d authored by louyuqi's avatar louyuqi

scroll

parent 584eb0ae
......@@ -30,7 +30,7 @@ const initBScroll = (el:HTMLElement) => {
scrollX: false,
momentum: true,
scrollY: true,
bounce: false,
bounce: true,
stopPropagation: true,
})
return res
......@@ -55,7 +55,7 @@ export const NewsScrollView = (props: ScrollViewType) => {
return (
<div className=" h-full overflow-hidden -translate-x-[200px]" ref={wrapRef}>
<div className=" h-full overflow-hidden ml-[-200px]" ref={wrapRef}>
{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