feat(views/geomap): dragging notes that are children

This commit is contained in:
Elian Doran
2025-07-07 17:55:16 +03:00
parent 6509acd6ee
commit 2a665dffbc
3 changed files with 46 additions and 0 deletions

View File

@@ -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();