Browse Source

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
gemini
yotamberk 7 years ago
committed by GitHub
parent
commit
6e59ac909d
2 changed files with 11 additions and 1 deletions
  1. +10
    -0
      docs/timeline/index.html
  2. +1
    -1
      lib/timeline/Core.js

+ 10
- 0
docs/timeline/index.html View File

@ -1562,6 +1562,16 @@ timeline.off('select', onSelect);
</td> </td>
</tr> </tr>
<tr>
<td>drop</td>
<td>
Passes a properties object as returned by the method <a href="#getEventProperties"><code>Timeline.getEventProperties(event)</code></a>.
</td>
<td>Fired when dropping inside the Timeline.
</td>
</tr>
<tr> <tr>
<td>mouseOver</td> <td>mouseOver</td>
<td> <td>

+ 1
- 1
lib/timeline/Core.js View File

@ -262,7 +262,7 @@ Core.prototype._create = function (container) {
y: event.clientY y: event.clientY
} }
me.itemSet._onAddItem(event); me.itemSet._onAddItem(event);
me.emit('drop', me.getEventProperties(event))
return false; return false;
} }

Loading…
Cancel
Save