feat: change detection line
This commit is contained in:
parent
664284ce95
commit
e9db12c3cb
1 changed files with 1 additions and 4 deletions
|
|
@ -52,10 +52,7 @@ function onScroll() {
|
|||
const containerRect = container.getBoundingClientRect();
|
||||
const elementRect = v.element.getBoundingClientRect();
|
||||
|
||||
if (
|
||||
containerRect.y + containerRect.height / 3 >=
|
||||
elementRect.y + elementRect.height / 2
|
||||
) {
|
||||
if (containerRect.y + containerRect.height / 5 >= elementRect.y) {
|
||||
current = v.anchor;
|
||||
}
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue