Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我注意到当我快速移动鼠标时会触发 mousemove 事件几次,而不是我移动鼠标的每个像素。这反映在动画上,因为对于这个问题,它们看起来并不流畅。ontouchmove 是否有同样的问题?
每次将鼠标悬停在新元素上时都会触发 Mousemove。Touchmove 会触发每次触摸,但您可能不在实际元素上。