feat: change detection line

This commit is contained in:
Methapon2001 2024-08-02 15:06:15 +07:00 committed by Net
parent 664284ce95
commit e9db12c3cb

View file

@ -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;
}
});