Skip to content
This repository has been archived by the owner on Jul 13, 2024. It is now read-only.

Add commit object to the mouseEventOptions object

Compare
Choose a tag to compare
@nicoespeon nicoespeon released this 29 Dec 21:54
· 882 commits to master since this release

Thanks to @srangos, you now have access to the Commit object in mouse event callbacks.

For example:

gitGraph.canvas.addEventListener("commit:mouseover", function (event) {
  // event.data.commit represents the commit being hovered
});