This commit is contained in:
@@ -84,7 +84,18 @@
|
|||||||
<v-icon small :color="event.textColor" class="mr-1">{{
|
<v-icon small :color="event.textColor" class="mr-1">{{
|
||||||
iconForEvent(event.type)
|
iconForEvent(event.type)
|
||||||
}}</v-icon>
|
}}</v-icon>
|
||||||
<span :class="event.textColor + '--text'" v-html="eventSummary()" />
|
|
||||||
|
<span
|
||||||
|
:class="event.textColor + '--text'"
|
||||||
|
v-html="eventSummary()"
|
||||||
|
/><v-icon
|
||||||
|
v-if="!event.editable"
|
||||||
|
x-small
|
||||||
|
:color="event.textColor"
|
||||||
|
class="ml-1"
|
||||||
|
>
|
||||||
|
$ayiLock</v-icon
|
||||||
|
>
|
||||||
</div>
|
</div>
|
||||||
<div
|
<div
|
||||||
v-if="timed"
|
v-if="timed"
|
||||||
@@ -363,17 +374,21 @@ export default {
|
|||||||
startDrag({ event }) {
|
startDrag({ event }) {
|
||||||
// console.log("startDrag", event);
|
// console.log("startDrag", event);
|
||||||
|
|
||||||
if (event && event.editable) {
|
if (event) {
|
||||||
//My work around to disambiguate dragging and clicking
|
if (event.editable) {
|
||||||
clearTimeout(this.dragTimeout);
|
//My work around to disambiguate dragging and clicking
|
||||||
this.dragged = false;
|
clearTimeout(this.dragTimeout);
|
||||||
this.dragTimeout = setTimeout(() => {
|
this.dragged = false;
|
||||||
this.dragged = true;
|
this.dragTimeout = setTimeout(() => {
|
||||||
}, 100); // Minimal delay to be regarded as drag instead of click
|
this.dragged = true;
|
||||||
|
}, 100); // Minimal delay to be regarded as drag instead of click
|
||||||
|
|
||||||
this.dragEvent = event;
|
this.dragEvent = event;
|
||||||
this.dragTime = null;
|
this.dragTime = null;
|
||||||
this.extendOriginal = null;
|
this.extendOriginal = null;
|
||||||
|
} else {
|
||||||
|
this.dragged = false;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
extendBottom(event) {
|
extendBottom(event) {
|
||||||
@@ -645,7 +660,10 @@ export default {
|
|||||||
});
|
});
|
||||||
},
|
},
|
||||||
async showevInfo({ nativeEvent, event }) {
|
async showevInfo({ nativeEvent, event }) {
|
||||||
//console.log("showevInfo, dragged: ", this.dragged);
|
console.log("showevInfo, event: ", {
|
||||||
|
event: event,
|
||||||
|
dragged: this.dragged
|
||||||
|
});
|
||||||
//workaround to disambiguate drag click from view more info click
|
//workaround to disambiguate drag click from view more info click
|
||||||
if (this.dragged) {
|
if (this.dragged) {
|
||||||
return;
|
return;
|
||||||
|
|||||||
Reference in New Issue
Block a user