Add support for RMB/Escape canceling layer drag reordering in the Layers panel (#3426)

* Add support for RMB/Escape canceling layer drag reordering in the Layers panel

* Disable hover effects on layers during drag; fix insertion line getting cut off at top of stack
This commit is contained in:
Keavon Chambers
2025-11-27 03:10:33 -08:00
committed by GitHub
parent ab5c87f017
commit 8cebde76e2
3 changed files with 157 additions and 99 deletions
-3
View File
@@ -3,7 +3,6 @@
import { type Editor } from "@graphite/editor";
import { createClipboardManager } from "@graphite/io-managers/clipboard";
import { createDragManager } from "@graphite/io-managers/drag";
import { createHyperlinkManager } from "@graphite/io-managers/hyperlinks";
import { createInputManager } from "@graphite/io-managers/input";
import { createLocalizationManager } from "@graphite/io-managers/localization";
@@ -46,7 +45,6 @@
createLocalizationManager(editor);
createPanicManager(editor, dialog);
createPersistenceManager(editor, portfolio);
let dragManagerDestructor = createDragManager();
let inputManagerDestructor = createInputManager(editor, dialog, portfolio, document, fullscreen);
onMount(() => {
@@ -56,7 +54,6 @@
onDestroy(() => {
// Call the destructor for each manager
dragManagerDestructor();
inputManagerDestructor();
});
</script>