What is the Chrome Dev Tools “Hit Test” timeline entry?

◇◆丶佛笑我妖孽 提交于 2019-12-09 08:23:26

问题


When looking at a Chrome Dev Tools timeline I noticed that there was a "Hit Test" entry every time somethings happens:

Does anyone know what it is? I've done my googling, but am still at a loss.

Thanks!


回答1:


A hit test is how a contact (mouse/touch) event is checked to see what it "hit" in the DOM.

https://www.chromium.org/developers/design-documents/compositor-hit-testing describes some of this.



来源:https://stackoverflow.com/questions/33174286/what-is-the-chrome-dev-tools-hit-test-timeline-entry

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!