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

fix(backtop): backtop should add throttle #2125

Merged
merged 1 commit into from Apr 2, 2024

Conversation

OnlyWick
Copy link
Contributor

@OnlyWick OnlyWick commented Mar 13, 2024

中文模板 / Chinese Template

What kind of change does this PR introduce? (check at least one)

  • Bugfix

PR description

backtop 需要添加节流函数, 不然他会在短时间内不断的触发, 导致回到 top 会卡顿

Changelog

🇨🇳 Chinese

  • Perf: Backtop 点击增加 throttle,防止duration内重复触发

🇺🇸 English

  • Perf: Backtop click to increase throttle to prevent repeated triggering within duration.

Checklist

  • Test or no need
  • Document or no need
  • Changelog or no need

Other

  • Skip Changelog

Additional information

Copy link

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

@DaiQiangReal DaiQiangReal merged commit 2f78190 into DouyinFE:main Apr 2, 2024
1 check passed
@OnlyWick OnlyWick deleted the fix-backtop-infinite-trigger branch April 2, 2024 09:08
@pointhalo
Copy link
Collaborator

image
已于 v2.56.0-beta.0 合入

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.

None yet

3 participants