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:
@@ -37,6 +37,7 @@ export const defaultPhaserConfig: Phaser.Types.Core.GameConfig = {
|
||||
parent: "phaser-container",
|
||||
backgroundColor: "#f9fafb",
|
||||
scene: [],
|
||||
disableContextMenu: true,
|
||||
};
|
||||
|
||||
export interface PhaserGameProps {
|
||||
|
||||
Reference in New Issue
Block a user