@@ -367,21 +367,21 @@ describe('axis zoom/pan and main plot zoom', function() {
367
367
mouseEvent ( 'scroll' , mainDragCoords . x , mainDragCoords . y , { deltaY : 20 , element : mainDrag } ) ;
368
368
} )
369
369
. then ( delay ( constants . REDRAWDELAY + 10 ) )
370
- . then ( checkRanges ( { xaxis : [ - 0.4428 , 2 ] , yaxis : [ 0 , 2.4428 ] } , 'xy main scroll' ) )
370
+ . then ( checkRanges ( { xaxis : [ - 0.2103 , 2 ] , yaxis : [ 0 , 2.2103 ] } , 'xy main scroll' ) )
371
371
. then ( function ( ) {
372
372
var ewDrag = getDragger ( 'xy' , 'ew' ) ;
373
373
var ewDragCoords = getNodeCoords ( ewDrag ) ;
374
374
mouseEvent ( 'scroll' , ewDragCoords . x - 50 , ewDragCoords . y , { deltaY : - 20 , element : ewDrag } ) ;
375
375
} )
376
376
. then ( delay ( constants . REDRAWDELAY + 10 ) )
377
- . then ( checkRanges ( { xaxis : [ - 0.3321 , 1.6679 ] , yaxis : [ 0 , 2.4428 ] } , 'x scroll' ) )
377
+ . then ( checkRanges ( { xaxis : [ - 0.1578 , 1.8422 ] , yaxis : [ 0 , 2.2103 ] } , 'x scroll' ) )
378
378
. then ( function ( ) {
379
379
var nsDrag = getDragger ( 'xy' , 'ns' ) ;
380
380
var nsDragCoords = getNodeCoords ( nsDrag ) ;
381
381
mouseEvent ( 'scroll' , nsDragCoords . x , nsDragCoords . y - 50 , { deltaY : - 20 , element : nsDrag } ) ;
382
382
} )
383
383
. then ( delay ( constants . REDRAWDELAY + 10 ) )
384
- . then ( checkRanges ( { xaxis : [ - 0.3321 , 1.6679 ] , yaxis : [ 0.3321 , 2.3321 ] } , 'y scroll' ) )
384
+ . then ( checkRanges ( { xaxis : [ - 0.1578 , 1.8422 ] , yaxis : [ 0.1578 , 2.1578 ] } , 'y scroll' ) )
385
385
. catch ( failTest )
386
386
. then ( done ) ;
387
387
} ) ;
@@ -420,15 +420,15 @@ describe('axis zoom/pan and main plot zoom', function() {
420
420
mouseEvent ( 'scroll' , mainDragCoords . x , mainDragCoords . y , { deltaY : 20 , element : mainDrag } ) ;
421
421
} )
422
422
. then ( delay ( constants . REDRAWDELAY + 10 ) )
423
- . then ( checkRanges ( { xaxis : [ - 0.4428 , 2 ] , yaxis : [ 0 , 2.4428 ] , xaxis2 : [ - 0.2214 , 2.2214 ] , yaxis2 : [ - 0.2214 , 2.2214 ] } ,
423
+ . then ( checkRanges ( { xaxis : [ - 0.2103 , 2 ] , yaxis : [ 0 , 2.2103 ] , xaxis2 : [ - 0.1052 , 2.1052 ] , yaxis2 : [ - 0.1052 , 2.1052 ] } ,
424
424
'scroll xy' ) )
425
425
. then ( function ( ) {
426
426
var ewDrag = getDragger ( 'xy' , 'ew' ) ;
427
427
var ewDragCoords = getNodeCoords ( ewDrag ) ;
428
428
mouseEvent ( 'scroll' , ewDragCoords . x - 50 , ewDragCoords . y , { deltaY : - 20 , element : ewDrag } ) ;
429
429
} )
430
430
. then ( delay ( constants . REDRAWDELAY + 10 ) )
431
- . then ( checkRanges ( { xaxis : [ - 0.3321 , 1.6679 ] , yaxis : [ 0.2214 , 2.2214 ] } , 'scroll x' ) )
431
+ . then ( checkRanges ( { xaxis : [ - 0.1578 , 1.8422 ] , yaxis : [ 0.1052 , 2.1052 ] } , 'scroll x' ) )
432
432
. catch ( failTest )
433
433
. then ( done ) ;
434
434
} ) ;
0 commit comments