Skip to content

Commit

Permalink
pass event to click callback
Browse files Browse the repository at this point in the history
  • Loading branch information
dkoes committed May 29, 2015
1 parent 1460e7d commit 6b54386
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions 3Dmol/glviewer.js
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ $3Dmol.GLViewer = (function() {
};

// Checks for selection intersects on mousedown
var handleClickSelection = function(mouseX, mouseY) {
var handleClickSelection = function(mouseX, mouseY, event) {
if(clickables.length == 0) return;
var mouse = {
x : mouseX,
Expand All @@ -208,7 +208,7 @@ $3Dmol.GLViewer = (function() {
var selected = intersects[0].clickable;
if (selected.callback !== undefined
&& typeof (selected.callback) === "function") {
selected.callback(selected, _viewer);
selected.callback(selected, _viewer, event, container);
}
}
};
Expand Down

0 comments on commit 6b54386

Please sign in to comment.