File tree Expand file tree Collapse file tree 1 file changed +1
-7
lines changed Expand file tree Collapse file tree 1 file changed +1
-7
lines changed Original file line number Diff line number Diff 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 ] ) ;
You can’t perform that action at this time.
0 commit comments