package com.bytedance.android.live.uikit.layout;

import X.C268615g;
import android.view.GestureDetector;
import android.view.MotionEvent;
import com.bytedance.covode.number.Covode;

public class SwipeOverlayFrameLayout$1 extends GestureDetector.SimpleOnGestureListener {
    public final /* synthetic */ C268615g LIZ;

    static {
        Covode.recordClassIndex(10720);
    }

    public SwipeOverlayFrameLayout$1(C268615g r1) {
        this.LIZ = r1;
    }

    public final boolean onFling(MotionEvent motionEvent, MotionEvent motionEvent2, float f, float f2) {
        C268615g r3 = this.LIZ;
        if (r3.LIZ == null || Math.abs(motionEvent2.getY() - motionEvent.getY()) > r3.LIZIZ) {
            return false;
        }
        float abs = Math.abs(f);
        float abs2 = Math.abs(f2);
        float abs3 = Math.abs(motionEvent2.getX() - motionEvent.getX());
        float abs4 = Math.abs(motionEvent2.getY() - motionEvent.getY());
        if (abs2 >= abs || abs4 >= abs3 || abs3 <= r3.LIZJ) {
            return false;
        }
        if (f > 0.0f) {
            return r3.LIZ.LIZIZ();
        }
        if (f < 0.0f) {
            return r3.LIZ.LIZ();
        }
        return false;
    }
}
