package com.tencent.mm.plugin.sns.ui;

import android.view.GestureDetector.SimpleOnGestureListener;
import android.view.MotionEvent;
import android.view.View;
import com.tencent.matrix.trace.core.AppMethodBeat;

class SnsSightPlayerUI$12 extends SimpleOnGestureListener {
    final /* synthetic */ SnsSightPlayerUI rwT;

    SnsSightPlayerUI$12(SnsSightPlayerUI snsSightPlayerUI) {
        this.rwT = snsSightPlayerUI;
    }

    public final boolean onScroll(MotionEvent motionEvent, MotionEvent motionEvent2, float f, float f2) {
        AppMethodBeat.i(39265);
        float translationX = (((View) SnsSightPlayerUI.g(this.rwT)).getTranslationX() + motionEvent2.getX()) - motionEvent.getX();
        float translationY = (((View) SnsSightPlayerUI.g(this.rwT)).getTranslationY() + motionEvent2.getY()) - motionEvent.getY();
        if (SnsSightPlayerUI.m(this.rwT)) {
            ((View) SnsSightPlayerUI.g(this.rwT)).setTranslationX(translationX);
            ((View) SnsSightPlayerUI.g(this.rwT)).setTranslationY(translationY);
        }
        AppMethodBeat.o(39265);
        return true;
    }

    public final void onLongPress(MotionEvent motionEvent) {
        AppMethodBeat.i(39266);
        SnsSightPlayerUI.b(this.rwT, true);
        super.onLongPress(motionEvent);
        AppMethodBeat.o(39266);
    }
}
