diff --git a/src/dev.ts b/src/dev.ts index d52a90f4..a94b39c0 100644 --- a/src/dev.ts +++ b/src/dev.ts @@ -26,10 +26,10 @@ const options: Options = { direction: MindElixir.SIDE, // direction: MindElixir.RIGHT, locale: 'en', - mouseSelectionButton: 2, + // mouseSelectionButton: 2, draggable: true, editable: true, - contextMenu: true, + contextMenu: false, contextMenuOption: { focus: true, link: true, diff --git a/src/mouse.ts b/src/mouse.ts index 1878d557..f09132c3 100644 --- a/src/mouse.ts +++ b/src/mouse.ts @@ -40,7 +40,6 @@ export default function (mind: MindElixirInstance) { }) mind.map.addEventListener('dblclick', e => { - e.preventDefault() if (!mind.editable) return const target = e.target as HTMLElement if (isTopic(target)) { diff --git a/src/plugin/selection.ts b/src/plugin/selection.ts index a2306aeb..a42681c0 100644 --- a/src/plugin/selection.ts +++ b/src/plugin/selection.ts @@ -4,7 +4,7 @@ import type { MindElixirInstance, Topic } from '..' import dragMoveHelper from '../utils/dragMoveHelper' export default function (mei: MindElixirInstance) { - const triggers: Trigger[] = mei.mouseSelectionButton === 2 ? [{ button: 0, modifiers: ['ctrl'] }, 2] : [0] + const triggers: Trigger[] = mei.mouseSelectionButton === 2 ? [2] : [0] const selection = new SelectionArea({ selectables: ['.map-container me-tpc'], boundaries: [mei.container],