From 19f71b51fb2f26706e9e0e3f3bd5d1b1868f4699 Mon Sep 17 00:00:00 2001 From: Stefano Straus Date: Mon, 21 May 2018 13:12:21 +0200 Subject: [PATCH] Extended dragstart callback with event I need to have the original event to change the ghost image while dragging --- src/components/vddl-draggable.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/vddl-draggable.vue b/src/components/vddl-draggable.vue index 36be739..e429fc4 100644 --- a/src/components/vddl-draggable.vue +++ b/src/components/vddl-draggable.vue @@ -73,7 +73,7 @@ export default { // Invoke callback if (typeof(this.dragstart) === 'function') { - this.dragstart.call(this, event.target); + this.dragstart.call(this, event.target, event); } },