Browse Source

Fix event rect when moving zoom extent - #786

pull/789/merge
Masayuki Tanaka 10 years ago
parent
commit
33687960f3
  1. 2
      c3.js
  2. 2
      c3.min.js
  3. 2
      src/zoom.js

2
c3.js

@ -5261,7 +5261,7 @@
.on('zoomend', function () {
var event = d3.event.sourceEvent;
// if click, do nothing. otherwise, click interaction will be canceled.
if (event && startEvent.x === event.x && startEvent.y === event.y) {
if (event && startEvent.clientX === event.clientX && startEvent.clientY === event.clientY) {
return;
}
$$.redrawEventRect();

2
c3.min.js vendored

File diff suppressed because one or more lines are too long

2
src/zoom.js

@ -13,7 +13,7 @@ c3_chart_internal_fn.initZoom = function () {
.on('zoomend', function () {
var event = d3.event.sourceEvent;
// if click, do nothing. otherwise, click interaction will be canceled.
if (event && startEvent.x === event.x && startEvent.y === event.y) {
if (event && startEvent.clientX === event.clientX && startEvent.clientY === event.clientY) {
return;
}
$$.redrawEventRect();

Loading…
Cancel
Save