fix: 移动端表头吸附改进
This commit is contained in:
@@ -338,11 +338,9 @@ export default function MobileFundTable({
|
|||||||
const handlePortalScroll = () => syncScrollToTable();
|
const handlePortalScroll = () => syncScrollToTable();
|
||||||
|
|
||||||
tableEl.addEventListener('scroll', handleTableScroll, { passive: true });
|
tableEl.addEventListener('scroll', handleTableScroll, { passive: true });
|
||||||
portalEl.addEventListener('scroll', handlePortalScroll, { passive: true });
|
|
||||||
|
|
||||||
return () => {
|
return () => {
|
||||||
tableEl.removeEventListener('scroll', handleTableScroll);
|
tableEl.removeEventListener('scroll', handleTableScroll);
|
||||||
portalEl.removeEventListener('scroll', handlePortalScroll);
|
|
||||||
};
|
};
|
||||||
}, [showPortalHeader]);
|
}, [showPortalHeader]);
|
||||||
|
|
||||||
|
|||||||
@@ -1540,8 +1540,8 @@ input[type="number"] {
|
|||||||
-webkit-overflow-scrolling: touch;
|
-webkit-overflow-scrolling: touch;
|
||||||
scrollbar-width: none;
|
scrollbar-width: none;
|
||||||
-ms-overflow-style: none;
|
-ms-overflow-style: none;
|
||||||
left: 12px;
|
left: 13px;
|
||||||
right: 12px;
|
right: 13px;
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
}
|
}
|
||||||
.mobile-fund-table-portal-header::-webkit-scrollbar {
|
.mobile-fund-table-portal-header::-webkit-scrollbar {
|
||||||
|
|||||||
Reference in New Issue
Block a user