package com.bytedance.sdk.component.ef;

import android.content.Context;
import android.view.View;
import android.view.ViewConfiguration;

/* JADX INFO: loaded from: classes.dex */
public abstract class lb implements View.OnTouchListener {
    private ViewConfiguration fm;
    private int ro = -1;

    public abstract void fm(View.OnTouchListener onTouchListener);

    public boolean fm(float f10, float f11, float f12, float f13, Context context) {
        if (this.fm == null) {
            this.fm = ViewConfiguration.get(context);
        }
        if (this.ro == -1) {
            this.ro = this.fm.getScaledTouchSlop();
        }
        return Math.abs(f10 - f12) <= ((float) this.ro) && Math.abs(f11 - f13) <= ((float) this.ro);
    }
}
