@@ -31,7 +31,7 @@ export function hPan(logger: Logger, cancellable: boolean,
3131 return new InteractionBuilderImpl ( name => new TouchDnD ( logger , cancellable , undefined , name ) )
3232 . firstAndThen ( data => data . isHorizontal ( pxTolerance ) )
3333 . end ( data => ( minLength === undefined || Math . abs ( data . diffScreenX ) >= minLength ) &&
34- ( minVelocity === undefined || data . velocity ( "horiz" ) >= minVelocity ) )
34+ ( minVelocity === undefined || data . velocity ( "horiz" ) >= minVelocity ) )
3535 . name ( hPan . name )
3636 . build ( ) ;
3737}
@@ -51,7 +51,7 @@ export function vPan(logger: Logger, cancellable: boolean,
5151 return new InteractionBuilderImpl ( name => new TouchDnD ( logger , cancellable , undefined , name ) )
5252 . firstAndThen ( data => data . isVertical ( pxTolerance ) )
5353 . end ( data => ( minLength === undefined || Math . abs ( data . diffScreenY ) >= minLength ) &&
54- ( minVelocity === undefined || data . velocity ( "vert" ) >= minVelocity ) )
54+ ( minVelocity === undefined || data . velocity ( "vert" ) >= minVelocity ) )
5555 . name ( vPan . name )
5656 . build ( ) ;
5757}
@@ -71,7 +71,7 @@ export function leftPan(logger: Logger, cancellable: boolean,
7171 return new InteractionBuilderImpl ( name => new TouchDnD ( logger , cancellable , undefined , name ) )
7272 . firstAndThen ( data => data . isLeft ( pxTolerance ) )
7373 . end ( data => ( minLength === undefined || Math . abs ( data . diffScreenX ) >= minLength ) &&
74- ( minVelocity === undefined || data . velocity ( "horiz" ) >= minVelocity ) )
74+ ( minVelocity === undefined || data . velocity ( "horiz" ) >= minVelocity ) )
7575 . name ( leftPan . name )
7676 . build ( ) ;
7777}
@@ -91,7 +91,7 @@ export function rightPan(logger: Logger, cancellable: boolean,
9191 return new InteractionBuilderImpl ( name => new TouchDnD ( logger , cancellable , undefined , name ) )
9292 . firstAndThen ( data => data . isRight ( pxTolerance ) )
9393 . end ( data => ( minLength === undefined || Math . abs ( data . diffScreenX ) >= minLength ) &&
94- ( minVelocity === undefined || data . velocity ( "horiz" ) >= minVelocity ) )
94+ ( minVelocity === undefined || data . velocity ( "horiz" ) >= minVelocity ) )
9595 . name ( rightPan . name )
9696 . build ( ) ;
9797}
@@ -111,7 +111,7 @@ export function topPan(logger: Logger, cancellable: boolean,
111111 return new InteractionBuilderImpl ( name => new TouchDnD ( logger , cancellable , undefined , name ) )
112112 . firstAndThen ( data => data . isTop ( pxTolerance ) )
113113 . end ( data => ( minLength === undefined || Math . abs ( data . diffScreenY ) >= minLength ) &&
114- ( minVelocity === undefined || data . velocity ( "vert" ) >= minVelocity ) )
114+ ( minVelocity === undefined || data . velocity ( "vert" ) >= minVelocity ) )
115115 . name ( topPan . name )
116116 . build ( ) ;
117117}
@@ -131,7 +131,7 @@ export function bottomPan(logger: Logger, cancellable: boolean,
131131 return new InteractionBuilderImpl ( name => new TouchDnD ( logger , cancellable , undefined , name ) )
132132 . firstAndThen ( data => data . isBottom ( pxTolerance ) )
133133 . end ( data => ( minLength === undefined || Math . abs ( data . diffScreenY ) >= minLength ) &&
134- ( minVelocity === undefined || data . velocity ( "vert" ) >= minVelocity ) )
134+ ( minVelocity === undefined || data . velocity ( "vert" ) >= minVelocity ) )
135135 . name ( bottomPan . name )
136136 . build ( ) ;
137137}
0 commit comments