Skip to content

Commit 005e177

Browse files
committed
Reinstate pointer-events: all on parent <g>.
This is required for the invisible resize handles. Also added comment about IE9 workaround.
1 parent dad5783 commit 005e177

3 files changed

Lines changed: 6 additions & 4 deletions

File tree

d3.v2.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4260,13 +4260,14 @@ d3.svg.brush = function() {
42604260

42614261
// Prepare the brush container for events.
42624262
g
4263+
.style("pointer-events", "all")
42634264
.on("mousedown.brush", brushstart)
42644265
.on("touchstart.brush", brushstart);
42654266

42664267
// An invisible, mouseable area for starting a new brush.
42674268
bg.enter().append("rect")
42684269
.attr("class", "background")
4269-
.style("pointer-events", "all")
4270+
.style("pointer-events", "all") // required here due to IE9 not inheriting properly
42704271
.style("visibility", "hidden")
42714272
.style("cursor", "crosshair");
42724273

0 commit comments

Comments
 (0)