mirror of
https://github.com/muerwre/vault-frontend.git
synced 2025-04-24 20:36:40 +07:00
fixed hero swiping
This commit is contained in:
parent
12ffd39082
commit
947d2180f6
1 changed files with 2 additions and 1 deletions
|
@ -29,7 +29,7 @@ const autoplay = {
|
||||||
};
|
};
|
||||||
|
|
||||||
const lazy = {
|
const lazy = {
|
||||||
loadPrevNextAmount: 5,
|
loadPrevNextAmount: 3,
|
||||||
checkInView: false,
|
checkInView: false,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -125,6 +125,7 @@ export const FlowSwiperHero: FC<Props> = ({ heroes }) => {
|
||||||
onRealIndexChange={onIndexChange}
|
onRealIndexChange={onIndexChange}
|
||||||
onAfterInit={onIndexChange}
|
onAfterInit={onIndexChange}
|
||||||
onClick={onClick}
|
onClick={onClick}
|
||||||
|
followFinger
|
||||||
>
|
>
|
||||||
{heroes
|
{heroes
|
||||||
.filter(node => node.thumbnail)
|
.filter(node => node.thumbnail)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue