@@ -2807,9 +2807,9 @@ I.FlickObserver = { create: () => {
2807
2807
if ( ! I . Loupe . Transforming ) {
2808
2808
if ( FlickObserver . StartedOn . LaunchingAxis == C . A_AXIS_B && Math . abs ( Passage [ C . A_AXIS_B ] / 100 ) >= 1 ) {
2809
2809
// Orthogonal Pan/Releace
2810
- cb = FlickObserver . switchAxis_or_toggleUtilities ( ) ;
2810
+ cb = FlickObserver . getOrthogonalTouchMoveFunction ( ) ;
2811
2811
}
2812
- if ( ! cb && Math . abs ( Passage . X ) >= 3 || Math . abs ( Passage . Y ) >= 3 ) {
2812
+ if ( ! cb && ( Math . abs ( Passage . X ) >= 3 || Math . abs ( Passage . Y ) >= 3 ) ) {
2813
2813
// Moved (== not Tap)
2814
2814
Eve . preventDefault ( ) ;
2815
2815
Par . Speed = Math . sqrt ( Math . pow ( Passage . X , 2 ) + Math . pow ( Passage . Y , 2 ) ) / ( Eve . timeStamp - FlickObserver . StartedOn . TimeStamp ) ;
@@ -2842,7 +2842,7 @@ I.FlickObserver = { create: () => {
2842
2842
if ( ! Dist ) {
2843
2843
// Orthogonal (not for "move")
2844
2844
return new Promise ( resolve => {
2845
- FlickObserver . switchAxis_or_toggleUtilities ( ) ( ) ;
2845
+ FlickObserver . getOrthogonalTouchMoveFunction ( ) ( ) ;
2846
2846
resolve ( ) ;
2847
2847
} ) ;
2848
2848
} else if ( S . RVM == 'paged' || S . RVM != ( / ^ [ l r ] / . test ( Dir ) ? 'horizontal' : / ^ [ t b ] / . test ( Dir ) ? 'vertical' : '' ) ) {
@@ -2875,8 +2875,8 @@ I.FlickObserver = { create: () => {
2875
2875
Duration : ! I . isScrollable ( ) ? 0 : S [ 'content-draggable' ] [ 0 ] ? 123 : 0
2876
2876
} ) ;
2877
2877
} ,
2878
- switchAxis_or_toggleUtilities : ( ) => { switch ( I . orthogonal ( 'touch-moves' ) ) {
2879
- case 'switch' : if ( S . RVM != 'paged' && I . AxisSwitcher ) return I . AxisSwitcher . switchAxis ; break ;
2878
+ getOrthogonalTouchMoveFunction : ( ) => { switch ( I . orthogonal ( 'touch-moves' ) ) {
2879
+ case 'switch' : if ( I . AxisSwitcher ) return I . AxisSwitcher . switchAxis ; break ;
2880
2880
case 'utilities' : return I . Utilities . toggleGracefuly ; break ;
2881
2881
} } ,
2882
2882
getCNPf : ( Ele ) => Ele . ownerDocument == document ? '' : 'bibi-' ,
@@ -4568,7 +4568,7 @@ I.AxisSwitcher = { create: () => { if(S['fix-reader-view-mode']) return I.AxisSw
4568
4568
switchAxis : ( ) => new Promise ( resolve => {
4569
4569
if ( S . RVM == 'paged' ) return resolve ( ) ;
4570
4570
const ViewMode = S . RVM == 'horizontal' ? 'vertical' : 'horizontal' ;
4571
- I . Menu . Config . ViewModeSection . ButtonGroups [ 0 ] . Buttons . filter ( I => I . Mode == ViewMode ) [ 0 ] . BibiTapObserver . onTap ( ) ;
4571
+ I . Menu . Config . ViewModeSection . ButtonGroups [ 0 ] . Buttons . filter ( Button => Button . Mode == ViewMode ) [ 0 ] . BibiTapObserver . onTap ( ) ;
4572
4572
resolve ( ) ;
4573
4573
} )
4574
4574
} ;
0 commit comments