* Fix redraw order
* Add mouseup, mousedown, mouseover, click and dblclick events on timeline
* Add docs
* Add to evenlistener example
* Add mousemove event listener
* Fix example
* Remove mouseUp and mouseDown events and fix docs for mouseOver
* Remove mouseUp and mouseDown from example
This example listens for events <code>select</code>, <code>rangechange</code>, and <code>rangechanged</code> of the Timeline, and listens for changes in the DataSet (<code>add</code>, <code>update</code>, or <code>remove</code> items).
This example listens for events <code>select</code>, <code>click</code>, <code>doubleClick</code>, <code>rangechange</code>, and <code>rangechanged</code> of the Timeline (other possible events: <code>mouseDown</code>, <code>mouseUp</code>, <code>mouseOver</code>, <code>mouseMove</code>), and listens for changes in the DataSet (<code>add</code>, <code>update</code>, or <code>remove</code> items).
</p>
</p>
<divid="visualization"></div>
<divid="visualization"></div>
<p></p>
<p></p>
@ -57,6 +57,28 @@
setHoveredItem('none');
setHoveredItem('none');
});
});
timeline.on('click', function (properties) {
logEvent('click', properties);
});
timeline.on('doubleClick', function (properties) {
logEvent('doubleClick', properties);
});
timeline.on('contextmenu', function (properties) {
logEvent('contextmenu', properties);
});
// other possible events:
// timeline.on('mouseOver', function (properties) {