feat(framework): support multi-button drag and drop

Adds support for tracking the specific mouse button used during
drag-and-drop operations. This includes a new `ALTBUTTON` event type
to handle cases where a different button is pressed while a drag is
already in progress, and disables the browser context menu by default
in the Phaser configuration to prevent interference.
This commit is contained in:
2026-04-20 20:33:56 +08:00
parent fd347e7a62
commit cc796d1e11
2 changed files with 32 additions and 5 deletions
@@ -37,6 +37,7 @@ export const defaultPhaserConfig: Phaser.Types.Core.GameConfig = {
parent: "phaser-container",
backgroundColor: "#f9fafb",
scene: [],
disableContextMenu: true,
};
export interface PhaserGameProps {