aboutsummaryrefslogtreecommitdiff
path: root/src/util/DragManager.ts
diff options
context:
space:
mode:
authorTyler Schicke <tyler_schicke@brown.edu>2019-01-27 17:59:31 -0500
committerTyler Schicke <tyler_schicke@brown.edu>2019-01-27 17:59:31 -0500
commit5e7fe214c42ef6f31e107255e5c8611a88235674 (patch)
tree8f2644338f51e4479a3e9ea0361189e09a2ac348 /src/util/DragManager.ts
parentb6f8f3f6c75c330430cd593b543e682838f9865d (diff)
Fixed drag drop event handling
Diffstat (limited to 'src/util/DragManager.ts')
-rw-r--r--src/util/DragManager.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/util/DragManager.ts b/src/util/DragManager.ts
index 7a8362471..89d994089 100644
--- a/src/util/DragManager.ts
+++ b/src/util/DragManager.ts
@@ -45,7 +45,7 @@ export namespace DragManager {
}
export interface DropHandlers {
- drop: (e: DropEvent) => void;
+ drop: (e:Event, de: DropEvent) => void;
}
export function MakeDraggable(element: HTMLElement, options: DragOptions): DragDropDisposer {
@@ -85,7 +85,7 @@ export namespace DragManager {
element.dataset["canDrop"] = "true";
const handler = (e: Event) => {
const ce = e as CustomEvent<DropEvent>;
- options.handlers.drop(ce.detail);
+ options.handlers.drop(e, ce.detail);
};
element.addEventListener("dashOnDrop", handler);
return () => {