Skip to content

Commit

Permalink
Fix background events for d3.svg.brush.
Browse files Browse the repository at this point in the history
This reverts previous IE9 fixes to @4f55282.
  • Loading branch information
mbostock committed Apr 19, 2012
1 parent 907c5a5 commit d3bad29
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 10 deletions.
4 changes: 1 addition & 3 deletions d3.v2.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ try {
d3_style_setProperty.call(this, name, value + "", priority);
};
}
d3 = {version: "2.9.0"}; // semver
d3 = {version: "2.9.1"}; // semver
function d3_class(ctor, properties) {
try {
for (var key in properties) {
Expand Down Expand Up @@ -4404,7 +4404,6 @@ d3.svg.brush = function() {

// Propagate the active cursor to the body for the drag duration.
g.style("pointer-events", "none").selectAll(".resize").style("display", null);
g.select(".background").style("display", "none"); // workaround for IE9 bug
d3.select("body").style("cursor", eventTarget.style("cursor"));

// Notify listeners.
Expand Down Expand Up @@ -4529,7 +4528,6 @@ d3.svg.brush = function() {

// reset the cursor styles
g.style("pointer-events", "all").selectAll(".resize").style("display", brush.empty() ? "none" : null);
g.select(".background").style("display", null); // workaround for IE9 bug
d3.select("body").style("cursor", null);

w .on("mousemove.brush", null)
Expand Down
6 changes: 3 additions & 3 deletions d3.v2.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "d3",
"version": "2.9.0",
"version": "2.9.1",
"description": "A small, free JavaScript library for manipulating documents based on data.",
"keywords": [
"dom",
Expand Down
2 changes: 1 addition & 1 deletion src/core/core.js
Original file line number Diff line number Diff line change
@@ -1 +1 @@
d3 = {version: "2.9.0"}; // semver
d3 = {version: "2.9.1"}; // semver
2 changes: 0 additions & 2 deletions src/svg/brush.js
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,6 @@ d3.svg.brush = function() {

// Propagate the active cursor to the body for the drag duration.
g.style("pointer-events", "none").selectAll(".resize").style("display", null);
g.select(".background").style("display", "none"); // workaround for IE9 bug
d3.select("body").style("cursor", eventTarget.style("cursor"));

// Notify listeners.
Expand Down Expand Up @@ -248,7 +247,6 @@ d3.svg.brush = function() {

// reset the cursor styles
g.style("pointer-events", "all").selectAll(".resize").style("display", brush.empty() ? "none" : null);
g.select(".background").style("display", null); // workaround for IE9 bug
d3.select("body").style("cursor", null);

w .on("mousemove.brush", null)
Expand Down

0 comments on commit d3bad29

Please sign in to comment.