Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

v-in-view с trackVisibility: true не вызывает handler, если изменилась opacity с 0 на 1 и наоборот #912

Open
kormanowsky opened this issue Jun 29, 2023 · 2 comments
Labels

Comments

@kormanowsky
Copy link
Contributor

На демо-странице такое:

- template index() extends ['i-static-page.component'].index
    - block body
        < div v-in-view = { &
            handler: console.log,
            trackVisibility: true,
            once: false
        } | style = { &
            opacity: 0;
        } .

Здесь
https://web.dev/intersectionobserver-v2/
написано:
If the target, or any element in its containing block chain, has an effective opacity other than 1.0, then the target is considered invisible.

Т. е. должен быть вызов. Но его нет

@kormanowsky kormanowsky changed the title v-in-view с trackVisibility: true не вызывает handler, если изменилась opacity v-in-view с trackVisibility: true не вызывает handler, если изменилась opacity с 0 на 1 и наоборот Jun 29, 2023
@kormanowsky
Copy link
Contributor Author

На mdn не видно этой опции, есть issue mdn/content#19201

@kormanowsky
Copy link
Contributor Author

Выявилось в #904

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants