diff --git a/ayanova/devdocs/todo.txt b/ayanova/devdocs/todo.txt index 3c25f9e2..e0b9b69d 100644 --- a/ayanova/devdocs/todo.txt +++ b/ayanova/devdocs/todo.txt @@ -32,8 +32,12 @@ this can check and then do moreinfo as it's already handling dragging see if it detects non vs drag and do accordingly? Start drag and end drag should handle it all - on start capture time or mouse coords - on stop check if too little time or too short distance occured to be a drag and process as showmore else it's a drag + TODO: + Layer on the functionality, start with drag and move to extend, new and more info + the fewer events used the easier can cleaner it will be + 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 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 c508e956..e0dae2d1 100644 --- a/ayanova/src/views/home-schedule.vue +++ b/ayanova/src/views/home-schedule.vue @@ -70,15 +70,21 @@ @click:more="viewDay" @click:date="viewDay" @change="fetchEvents" - @mousedown:event="startDrag" - @mousedown:time="startTime" - @mousemove:time="mouseMoveDayView" - @mousemove:day="mouseMoveMonthView" - @mouseup:day="endDragExtend" - @mouseup:time="endDragExtend" - @mouseleave.native="cancelDrag" + @mousedown:event="onMouseDownEvent" + @mousedown:time="onMouseDownTime" + @mouseup:day="onMouseUpDay" + @mouseup:time="onMouseUpTime" + @mouseleave.native="onMouseLeave" + @mousemove:time="onMouseMoveTime" + @mousemove:day="onMouseMoveDay" > - +