This commit is contained in:
2021-10-02 00:36:05 +00:00
parent d97f7b45f4
commit 0f38e1d2fa
2 changed files with 5 additions and 6 deletions

View File

@@ -684,22 +684,22 @@ export default {
if (!tms.category && this.viewType == "category") {
return;
}
//console.log("startTime, tms:", JSON.stringify(tms));
console.log("startTime, tms:", JSON.stringify(tms));
//This is called on the start of dragging an existing schedule item or drag extending a NEW schedule item
const mouse = this.toTime(tms);
if (this.dragEvent && this.dragTime === null) {
//console.log("startTime drag path");
console.log("startTime drag path");
//# DAY VIEW *DRAG* EXISTING START EVENT (not extend)
//(also called on simple click to view schedule more info)
if (this.dragEvent.editable) {
const start = this.dragEvent.start;
this.dragTime = mouse - start;
} else {
// console.log("startTime NOT EDITABLE!");
console.log("startTime NOT EDITABLE!");
}
} else {
//# DAY VIEW CREATE START EVENT
// console.log("startTime create start path");
console.log("startTime create start path");
this.createStart = this.roundTime(mouse);
this.extendEvent = {
name: "-",