Skip to content

Commit

Permalink
Set pointer-events to inherit in plot area for use of figures as tooltip
Browse files Browse the repository at this point in the history
  • Loading branch information
SylvainCorlay committed Dec 21, 2017
1 parent 3b791df commit dddbcf7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ _templates/

# Compiled javascript
bqplot/static/
js/css/bqplot.css

# Node modules
node_modules
Expand Down
2 changes: 1 addition & 1 deletion js/src/Figure.js
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand Down

0 comments on commit dddbcf7

Please sign in to comment.