© 2024 GitHub, Inc.
We read every piece of feedback, and take your input very seriously.
Work fast with our official CLI. Learn more.
Chromeのコンソールに、36件の
[Violation] Added non-passive event listener to a scroll-blocking
の警告が表示されるため、{passive: false}を明示的に指定しました。 Chromeの警告の内容は、{passive: true}として、Defaultの動作をキャンセルしない事をブラウザにあらかじめ伝えると高速に処理できるというものなので、Defaultの動作をキャンセルしていたり、キャンセルする可能性のある箇所に{passive: false}を指定しても処理速度が向上するわけでは無い筈なのですが、この指定によりChromeの警告を消す事はできました。 もとからイベントリスナーに入っていたtrue/falseの引数は、captureであるため、
capture
{ passive: false, capture: false }
のようにまとめ、元の記述がtrueの場合はcapture: trueとして、同じ指定になるようにしました。
capture: true
{passive: false}を明示的に指定。
d67a16f
ff724c1
Oops, something went wrong.
Add your comment here...
We don’t support that file type.
Try again with GIF, JPEG, JPG, MOV, MP4, PNG, SVG, WEBM, CPUPROFILE, CSV, DMP, DOCX, FODG, FODP, FODS, FODT, GZ, JSON, JSONC, LOG, MD, ODF, ODG, ODP, ODS, ODT, PATCH, PDF, PPTX, TGZ, TXT, XLS, XLSX or ZIP.
Attaching documents requires write permission to this repository.
This file is empty.
Try again with a file that’s not empty.
This file is hidden.
Try again with another file.
Something went really wrong, and we can’t process that file.
Try again.
Successfully merging this pull request may close these issues.
None yet
You’re receiving notifications because you’re watching this repository.
Optionally, choose a reason for locking that others can see. Learn more about when it’s appropriate to lock conversations.
Chromeのコンソールに、36件の
の警告が表示されるため、{passive: false}を明示的に指定しました。
Chromeの警告の内容は、{passive: true}として、Defaultの動作をキャンセルしない事をブラウザにあらかじめ伝えると高速に処理できるというものなので、Defaultの動作をキャンセルしていたり、キャンセルする可能性のある箇所に{passive: false}を指定しても処理速度が向上するわけでは無い筈なのですが、この指定によりChromeの警告を消す事はできました。
もとからイベントリスナーに入っていたtrue/falseの引数は、
capture
であるため、のようにまとめ、元の記述がtrueの場合は
capture: true
として、同じ指定になるようにしました。