This commit is contained in:
@@ -360,11 +360,10 @@ export default {
|
|||||||
};
|
};
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
startDrag({ event, timed }) {
|
startDrag({ event }) {
|
||||||
// console.log("startDrag", event);
|
// console.log("startDrag", event);
|
||||||
//TODO: IF event is not editable then just return here to prevent the drag
|
|
||||||
//if (event && timed) {
|
if (event && event.editable) {
|
||||||
if (event) {
|
|
||||||
//My work around to disambiguate dragging and clicking
|
//My work around to disambiguate dragging and clicking
|
||||||
clearTimeout(this.dragTimeout);
|
clearTimeout(this.dragTimeout);
|
||||||
this.dragged = false;
|
this.dragged = false;
|
||||||
@@ -379,8 +378,8 @@ export default {
|
|||||||
},
|
},
|
||||||
extendBottom(event) {
|
extendBottom(event) {
|
||||||
// console.log("extendBottom", event);
|
// console.log("extendBottom", event);
|
||||||
//TODO: if event is not editable then just return here to prevent extend
|
|
||||||
|
|
||||||
|
if (event.editable) {
|
||||||
//My work around to disambiguate extending and clicking
|
//My work around to disambiguate extending and clicking
|
||||||
clearTimeout(this.dragTimeout);
|
clearTimeout(this.dragTimeout);
|
||||||
this.dragged = false;
|
this.dragged = false;
|
||||||
@@ -392,6 +391,7 @@ export default {
|
|||||||
this.extendEvent = event;
|
this.extendEvent = event;
|
||||||
this.createStart = event.start;
|
this.createStart = event.start;
|
||||||
this.extendOriginal = event.end;
|
this.extendOriginal = event.end;
|
||||||
|
}
|
||||||
},
|
},
|
||||||
async endDragExtend() {
|
async endDragExtend() {
|
||||||
//On drag then dragEvent and dragTime are set
|
//On drag then dragEvent and dragTime are set
|
||||||
|
|||||||
Reference in New Issue
Block a user