File tree Expand file tree Collapse file tree 1 file changed +1
-11
lines changed Expand file tree Collapse file tree 1 file changed +1
-11
lines changed Original file line number Diff line number Diff line change @@ -105,11 +105,7 @@ nv.models.focus = function(content) {
105
105
106
106
brush . on ( 'brushend' , function ( ) {
107
107
if ( ! syncBrushing ) {
108
- var extent = brush . empty ( ) ? x . domain ( ) : brush . extent ( ) ;
109
- if ( Math . abs ( extent [ 0 ] - extent [ 1 ] ) <= 1 ) {
110
- return ;
111
- }
112
- dispatch . onBrush ( extent ) ;
108
+ dispatch . onBrush ( brush . empty ( ) ? x . domain ( ) : brush . extent ( ) ) ;
113
109
}
114
110
} ) ;
115
111
@@ -214,12 +210,6 @@ nv.models.focus = function(content) {
214
210
function onBrush ( shouldDispatch ) {
215
211
brushExtent = brush . empty ( ) ? null : brush . extent ( ) ;
216
212
var extent = brush . empty ( ) ? x . domain ( ) : brush . extent ( ) ;
217
-
218
- //The brush extent cannot be less than one. If it is, don't update the line chart.
219
- if ( Math . abs ( extent [ 0 ] - extent [ 1 ] ) <= 1 ) {
220
- return ;
221
- }
222
-
223
213
dispatch . brush ( { extent : extent , brush : brush } ) ;
224
214
updateBrushBG ( ) ;
225
215
if ( shouldDispatch ) {
You can’t perform that action at this time.
0 commit comments