From 3984082b2b1a6c57255783c40482ad1e77a6d8a0 Mon Sep 17 00:00:00 2001 From: John Cardinal Date: Mon, 4 Oct 2021 20:58:43 +0000 Subject: [PATCH] Partial revert back to original schedule after finding out what the issues really were, faster this way --- ayanova/devdocs/todo.txt | 6 + ayanova/src/views/home-schedule.vue | 288 +++++++++------------------- 2 files changed, 92 insertions(+), 202 deletions(-) diff --git a/ayanova/devdocs/todo.txt b/ayanova/devdocs/todo.txt index e0b9b69d..2c71c9c1 100644 --- a/ayanova/devdocs/todo.txt +++ b/ayanova/devdocs/todo.txt @@ -38,6 +38,12 @@ on event mousedown capture time or mouse coords on event mouseup check if too little time or too short distance occured to be a drag and process as showmore else it's a drag On mouse up or down outside event then it's a new event + Attempt is not saving anything, but does point to solution so modify prior code + don't use event click, use the mouseup event instead + dont' use the timer, port the isitaclick stuff instead + Use dialog for moreinfo + + should there be a day view at all in svc sched? diff --git a/ayanova/src/views/home-schedule.vue b/ayanova/src/views/home-schedule.vue index d7e35724..9d41adcd 100644 --- a/ayanova/src/views/home-schedule.vue +++ b/ayanova/src/views/home-schedule.vue @@ -70,21 +70,14 @@ @click:more="viewDay" @click:date="viewDay" @change="fetchEvents" - @mousedown:event="onMouseDownEvent" - @mousedown:time="onMouseDownTime" - @mouseup:day="onMouseUpDay" - @mouseup:time="onMouseUpTime" - @mouseleave.native="onMouseLeave" - @mousemove:time="onMouseMoveTime" - @mousemove:day="onMouseMoveDay" + @mousedown:event="startDrag" + @mousedown:time="startTime" + @mousemove:time="mouseMoveDayView" + @mousemove:day="mouseMoveMonthView" + @mouseup:day="endDragExtend" + @mouseup:time="endDragExtend" + @mouseleave.native="cancelDrag" > -