mirror of
https://github.com/zadam/trilium.git
synced 2025-11-08 06:15:48 +01:00
feat(views/geomap): dragging notes that are children
This commit is contained in:
@@ -10,6 +10,7 @@ import { CommandListenerData, EventData } from "../../../components/app_context.
|
||||
import { createNewNote, moveMarker } from "./editing.js";
|
||||
import link from "../../../services/link.js";
|
||||
import { openMapContextMenu } from "./context_menu.js";
|
||||
import setupDragging from "./dragging.js";
|
||||
|
||||
const TPL = /*html*/`
|
||||
<div class="geo-view">
|
||||
@@ -158,6 +159,7 @@ export default class GeoView extends ViewMode<MapData> {
|
||||
map.on("zoomend", updateFn);
|
||||
map.on("click", (e) => this.#onMapClicked(e))
|
||||
map.on("contextmenu", (e) => openMapContextMenu(this.parentNote.noteId, e));
|
||||
setupDragging(this.$container, map);
|
||||
|
||||
this.#reloadMarkers();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user