Commit 1d8184cf authored by Masayuki Tanaka's avatar Masayuki Tanaka

Fix mouse event bug on multiple xs - #453

parent 63c8eb16
......@@ -3358,7 +3358,7 @@
__data_onmouseover.call(c3, closest);
mouseover = true;
}
} else {
} else if (mouseover) {
svg.select('.' + CLASS.eventRect).style('cursor', null);
__data_onmouseout.call(c3, closest);
mouseover = false;
......@@ -3377,7 +3377,7 @@
// select if selection enabled
if (dist(closest, mouse) < 100) {
main.select('.' + CLASS.circles + '-' + getTargetSelectorSuffix(closest.id)).select('.' + CLASS.circle + '-' + closest.index).each(function () {
main.select('.' + CLASS.circles + getTargetSelectorSuffix(closest.id)).select('.' + CLASS.circle + '-' + closest.index).each(function () {
toggleShape(this, closest, closest.index);
});
}
......
This source diff could not be displayed because it is too large. You can view the blob instead.
......@@ -24,6 +24,7 @@
selection: {
enabled: true
},
onclick: function (d) { console.log("onclick", d); },
onmouseover: function (d) { console.log("onmouseover", d); },
onmouseout: function (d) { console.log("onmouseout", d); }
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment