Skip to content

Commit 328ab9a

Browse files
committed
correct parcoords constraint range interactions
1 parent 3bdb0a5 commit 328ab9a

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

src/traces/parcoords/axisbrush.js

+1-7
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,7 @@ function setHighlight(d) {
7878
if(!d.brush.filterSpecified) {
7979
return '0,' + d.height;
8080
}
81+
8182
var pixelRanges = unitToPx(d.brush.filter.getConsolidated(), d.height);
8283
var dashArray = [0]; // we start with a 0 length selection as filter ranges are inclusive, not exclusive
8384
var p, sectionHeight, iNext;
@@ -270,13 +271,6 @@ function attachDragBehavior(selection) {
270271
var topViolation = Math.max(0, s.newExtent[1] - 1);
271272
s.newExtent[0] += bottomViolation;
272273
s.newExtent[1] -= topViolation;
273-
if(s.grabbingBar) {
274-
// in case of bar dragging (non-resizing interaction, unlike north/south resize or new bar creation)
275-
// the constraint adjustment must apply to the other end of the bar as well, otherwise it'd
276-
// shorten or lengthen
277-
s.newExtent[1] += bottomViolation;
278-
s.newExtent[0] -= topViolation;
279-
}
280274

281275
d.brush.filterSpecified = true;
282276
s.extent = s.stayingIntervals.concat([s.newExtent]);

0 commit comments

Comments
 (0)