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

[Violation] Added non-passive event listener to a scroll-blocking 'touchstart' event. Consider marking event handler as 'passive' to make the page more responsive. #1603

Closed
DJHWSAB opened this issue Apr 4, 2024 · 2 comments
Labels
enhancement New update or improvement request

Comments

@DJHWSAB
Copy link

DJHWSAB commented Apr 4, 2024

您希望的更新和改进是什么 | Update or Improve

content_script.js文件中o.current.addEventListener("touchstart", A),修改为o.current.addEventListener("touchstart", A, {passive: true}),

补充说明 | Additional context

No response

@DJHWSAB DJHWSAB added the enhancement New update or improvement request label Apr 4, 2024
@keyboard3
Copy link
Contributor

你是在什么场景下用到?手机上滑动翻译段落?

@keyboard3
Copy link
Contributor

移动端上触摸事件已调整

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New update or improvement request
Projects
None yet
Development

No branches or pull requests

2 participants