package com.bytedance.android.livesdk.utils.crop;

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

public class PinchImageView$1 extends GestureDetector.SimpleOnGestureListener {
    public final /* synthetic */ Ta3 LIZ;

    static {
        Covode.recordClassIndex(21514);
    }

    public PinchImageView$1(Ta3 ta3) {
        this.LIZ = ta3;
    }

    /* JADX WARNING: type inference failed for: r0v3, types: [android.view.View, X.Ta3] */
    public final void onLongPress(MotionEvent motionEvent) {
        if (this.LIZ.LIZIZ != null) {
            this.LIZ.LIZIZ.onLongClick(this.LIZ);
        }
    }

    /* JADX WARNING: type inference failed for: r0v4, types: [android.view.View, X.Ta3] */
    public final boolean onSingleTapConfirmed(MotionEvent motionEvent) {
        if (this.LIZ.LIZ == null) {
            return true;
        }
        this.LIZ.LIZ.onClick(this.LIZ);
        return true;
    }

    public final boolean onDoubleTap(MotionEvent motionEvent) {
        if (this.LIZ.LJ == 1 && (this.LIZ.LJFF == null || !this.LIZ.LJFF.isRunning())) {
            this.LIZ.LIZIZ(motionEvent.getX(), motionEvent.getY());
        }
        return true;
    }

    public final boolean onFling(MotionEvent motionEvent, MotionEvent motionEvent2, float f, float f2) {
        if (this.LIZ.LJ != 0) {
            return true;
        }
        if (this.LIZ.LJFF != null && this.LIZ.LJFF.isRunning()) {
            return true;
        }
        Ta3 ta3 = this.LIZ;
        if (!ta3.LIZIZ()) {
            return true;
        }
        ta3.LIZJ();
        ta3.LJI = new Ta7(ta3, f / 60.0f, f2 / 60.0f);
        ta3.LJI.start();
        return true;
    }
}
