From dddbcf7a25704981bf456d686e326edc23772093 Mon Sep 17 00:00:00 2001 From: Sylvain Corlay Date: Thu, 21 Dec 2017 18:18:10 +0100 Subject: [PATCH] Set pointer-events to inherit in plot area for use of figures as tooltip --- .gitignore | 1 + js/src/Figure.js | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index 73737b1c5..ca6d0d6b6 100644 --- a/.gitignore +++ b/.gitignore @@ -46,6 +46,7 @@ _templates/ # Compiled javascript bqplot/static/ +js/css/bqplot.css # Node modules node_modules diff --git a/js/src/Figure.js b/js/src/Figure.js index 59841e54a..2d47a4dfd 100644 --- a/js/src/Figure.js +++ b/js/src/Figure.js @@ -127,7 +127,7 @@ var Figure = widgets.DOMWidgetView.extend({ .attr("width", this.plotarea_width) .attr("height", this.plotarea_height) .on("click", function() { that.trigger("bg_clicked"); }) - .style("pointer-events", "all") + .style("pointer-events", "inherit") .style(this.model.get("background_style")); this.fig_axes = this.fig.append("g");