Commit 4f552825 authored by Mike Bostock's avatar Mike Bostock
Browse files

Include brush mode with event.

This allows listeners to distinguish between move and resize events.
parent 93c78c62
......@@ -4429,7 +4429,7 @@ d3.svg.brush = function() {
// Final redraw and notify listeners.
if (moved) {
redraw(g);
event_({type: "brush"});
event_({type: "brush", mode: dragging ? "move" : "resize"});
}
}
......
This diff is collapsed.
......@@ -194,7 +194,7 @@ d3.svg.brush = function() {
// Final redraw and notify listeners.
if (moved) {
redraw(g);
event_({type: "brush"});
event_({type: "brush", mode: dragging ? "move" : "resize"});
}
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment