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.
我写了一个简单的拖拽滚动 svg(svg 文件,代码)。在这里,我在老鼠之后移动了图片的 viewBox。并在 Chromium 和 firefox 中对其进行了测试。在铬中它工作得很好(通过鼠标指针拖动图片)。但在 Firefox 中,它在同一台机器上抽搐。这种低性能的原因是什么?我怎样才能克服它?
你想把 evt.preventDefault(); 在事件处理程序中以防止调用默认的拖放处理。