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 を移動します。クロムとFirefoxでテストしました。クロムではうまく機能します(マウスポインタで画像をドラッグします)。しかし、Firefoxでは同じマシンでけいれんします。この低パフォーマンスの理由は何ですか? どうすれば克服できますか?
evt.preventDefault(); を入れたい イベント ハンドラで、デフォルトのドラッグ アンド ドロップ処理が呼び出されないようにします。