@@ -580,7 +580,7 @@ describe('Gesture handler', function () {
580
580
touchStart ( 1 , 50.0 , 40.0 ) ;
581
581
touchStart ( 2 , 60.0 , 40.0 ) ;
582
582
touchMove ( 1 , 80.0 , 40.0 ) ;
583
- touchMove ( 2 , 110 .0, 40.0 ) ;
583
+ touchMove ( 2 , 90 .0, 40.0 ) ;
584
584
585
585
expect ( gestures ) . to . not . have . been . called ;
586
586
@@ -601,15 +601,15 @@ describe('Gesture handler', function () {
601
601
detail : { type : 'twodrag' ,
602
602
clientX : 55.0 ,
603
603
clientY : 40.0 ,
604
- magnitudeX : 40 .0,
604
+ magnitudeX : 30 .0,
605
605
magnitudeY : 0.0 } } ) ) ;
606
606
} ) ;
607
607
608
608
it ( 'should handle slow vertical two finger drag' , function ( ) {
609
609
touchStart ( 1 , 40.0 , 40.0 ) ;
610
610
touchStart ( 2 , 40.0 , 60.0 ) ;
611
611
touchMove ( 2 , 40.0 , 80.0 ) ;
612
- touchMove ( 1 , 40.0 , 100 .0) ;
612
+ touchMove ( 1 , 40.0 , 80 .0) ;
613
613
614
614
expect ( gestures ) . to . not . have . been . called ;
615
615
@@ -631,14 +631,14 @@ describe('Gesture handler', function () {
631
631
clientX : 40.0 ,
632
632
clientY : 50.0 ,
633
633
magnitudeX : 0.0 ,
634
- magnitudeY : 40 .0 } } ) ) ;
634
+ magnitudeY : 30 .0 } } ) ) ;
635
635
} ) ;
636
636
637
637
it ( 'should handle slow diagonal two finger drag' , function ( ) {
638
638
touchStart ( 1 , 50.0 , 40.0 ) ;
639
639
touchStart ( 2 , 40.0 , 60.0 ) ;
640
640
touchMove ( 1 , 70.0 , 60.0 ) ;
641
- touchMove ( 2 , 90 .0, 110 .0) ;
641
+ touchMove ( 2 , 60 .0, 80 .0) ;
642
642
643
643
expect ( gestures ) . to . not . have . been . called ;
644
644
@@ -659,8 +659,8 @@ describe('Gesture handler', function () {
659
659
detail : { type : 'twodrag' ,
660
660
clientX : 45.0 ,
661
661
clientY : 50.0 ,
662
- magnitudeX : 35 .0,
663
- magnitudeY : 35 .0 } } ) ) ;
662
+ magnitudeX : 20 .0,
663
+ magnitudeY : 20 .0 } } ) ) ;
664
664
} ) ;
665
665
666
666
it ( 'should ignore too slow two finger drag' , function ( ) {
@@ -783,7 +783,7 @@ describe('Gesture handler', function () {
783
783
it ( 'should handle pinching inwards slowly' , function ( ) {
784
784
touchStart ( 1 , 0.0 , 0.0 ) ;
785
785
touchStart ( 2 , 130.0 , 130.0 ) ;
786
- touchMove ( 1 , 50 .0, 40 .0) ;
786
+ touchMove ( 1 , 30 .0, 20 .0) ;
787
787
touchMove ( 2 , 100.0 , 130.0 ) ;
788
788
789
789
expect ( gestures ) . to . not . have . been . called ;
@@ -805,14 +805,14 @@ describe('Gesture handler', function () {
805
805
detail : { type : 'pinch' ,
806
806
clientX : 65.0 ,
807
807
clientY : 65.0 ,
808
- magnitudeX : 50 .0,
809
- magnitudeY : 90 .0 } } ) ) ;
808
+ magnitudeX : 70 .0,
809
+ magnitudeY : 110 .0 } } ) ) ;
810
810
} ) ;
811
811
812
812
it ( 'should handle pinching outwards slowly' , function ( ) {
813
813
touchStart ( 1 , 100.0 , 130.0 ) ;
814
814
touchStart ( 2 , 110.0 , 130.0 ) ;
815
- touchMove ( 2 , 200 .0, 130.0 ) ;
815
+ touchMove ( 2 , 130 .0, 130.0 ) ;
816
816
817
817
expect ( gestures ) . to . not . have . been . called ;
818
818
@@ -833,7 +833,7 @@ describe('Gesture handler', function () {
833
833
detail : { type : 'pinch' ,
834
834
clientX : 105.0 ,
835
835
clientY : 130.0 ,
836
- magnitudeX : 100 .0,
836
+ magnitudeX : 30 .0,
837
837
magnitudeY : 0.0 } } ) ) ;
838
838
} ) ;
839
839
0 commit comments