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

Feat intersection observer #1649

Merged
merged 16 commits into from
Nov 1, 2024
Merged

Feat intersection observer #1649

merged 16 commits into from
Nov 1, 2024

Conversation

thuman
Copy link
Collaborator

@thuman thuman commented Oct 11, 2024

添加相交API功能

// 初次调用的
if (isCallback) {
this.callback({
index: index,
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

rm

top: navigation.isCustomHeader ? this.margins.top : navigation.headerHeight,
left: this.margins.left,
right: screen.width - this.margins.right,
bottom: navigation.layout.height + navigation.headerHeight - this.margins.bottom
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

测试一下vh的计算逻辑

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

vh计算逻辑不对,需要改一下

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

vh 使用navigation.layout 因为是异步在初始计算的时候还是会不符合预期,后续才是对的

@didi didi deleted a comment from thuman Oct 31, 2024
@hiyuki hiyuki merged commit 5ce6e23 into master Nov 1, 2024
6 checks passed
@hiyuki hiyuki deleted the feat-intersection-observer branch November 1, 2024 13:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants