Major new version #2

Merged
LeoVasanko merged 86 commits from vol002 into main 2025-08-26 05:58:24 +01:00
Showing only changes of commit 1169d6cc15 - Show all commits

View File

@ -193,6 +193,17 @@ function finalizeDragAndCreate() {
removeGlobalTouchListeners() removeGlobalTouchListeners()
} }
// Build a minimal event creation payload from current selection
// Returns null if selection is invalid or empty.
function createEventFromSelection() {
const sel = selection.value || {}
if (!sel.startDate || !sel.dayCount || sel.dayCount <= 0) return null
return {
startDate: sel.startDate,
dayCount: sel.dayCount,
}
}
function getDateUnderPoint(x, y) { function getDateUnderPoint(x, y) {
const el = document.elementFromPoint(x, y) const el = document.elementFromPoint(x, y)
let cur = el let cur = el