From 6e59ac909d16fa0a02c7062881695a88f1687047 Mon Sep 17 00:00:00 2001 From: yotamberk Date: Wed, 12 Apr 2017 12:00:06 +0300 Subject: [PATCH] Drop control - fix #2834 (#2974) * Fix redraw order * Fix error when option is not defined * Allow template labels * Add .travis.yml file * Add experiment travis code * Fix react example * Add drop event info --- docs/timeline/index.html | 10 ++++++++++ lib/timeline/Core.js | 2 +- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/docs/timeline/index.html b/docs/timeline/index.html index 4fb318ec..81e40f97 100644 --- a/docs/timeline/index.html +++ b/docs/timeline/index.html @@ -1562,6 +1562,16 @@ timeline.off('select', onSelect); + + drop + + Passes a properties object as returned by the method Timeline.getEventProperties(event). + + Fired when dropping inside the Timeline. + + + + mouseOver diff --git a/lib/timeline/Core.js b/lib/timeline/Core.js index 4a6533f7..386cd986 100644 --- a/lib/timeline/Core.js +++ b/lib/timeline/Core.js @@ -262,7 +262,7 @@ Core.prototype._create = function (container) { y: event.clientY } me.itemSet._onAddItem(event); - + me.emit('drop', me.getEventProperties(event)) return false; }