This commit is contained in:
2021-09-19 20:07:43 +00:00
parent 790a1b316d
commit fce2290f0e

View File

@@ -84,7 +84,18 @@
<v-icon small :color="event.textColor" class="mr-1">{{
iconForEvent(event.type)
}}</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
v-if="timed"
@@ -363,17 +374,21 @@ export default {
startDrag({ event }) {
// console.log("startDrag", event);
if (event && event.editable) {
//My work around to disambiguate dragging and clicking
clearTimeout(this.dragTimeout);
this.dragged = false;
this.dragTimeout = setTimeout(() => {
this.dragged = true;
}, 100); // Minimal delay to be regarded as drag instead of click
if (event) {
if (event.editable) {
//My work around to disambiguate dragging and clicking
clearTimeout(this.dragTimeout);
this.dragged = false;
this.dragTimeout = setTimeout(() => {
this.dragged = true;
}, 100); // Minimal delay to be regarded as drag instead of click
this.dragEvent = event;
this.dragTime = null;
this.extendOriginal = null;
this.dragEvent = event;
this.dragTime = null;
this.extendOriginal = null;
} else {
this.dragged = false;
}
}
},
extendBottom(event) {
@@ -645,7 +660,10 @@ export default {
});
},
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
if (this.dragged) {
return;