/*
 * Decompiled with CFR 0.152.
 * 
 * Could not load the following classes:
 *  net.minecraft.class_11909
 */
package meteordevelopment.meteorclient.gui.widgets.pressable;

import meteordevelopment.meteorclient.gui.widgets.pressable.WMinus;
import net.minecraft.class_11909;

public class WConfirmedMinus
extends WMinus {
    protected boolean pressedOnce = false;

    @Override
    public boolean onMouseClicked(class_11909 click, boolean doubled) {
        boolean pressed = super.onMouseClicked(click, doubled);
        if (!pressed) {
            this.pressedOnce = false;
        }
        return pressed;
    }

    @Override
    public boolean onMouseReleased(class_11909 click) {
        if (this.pressed && this.pressedOnce) {
            super.onMouseReleased(click);
        }
        this.pressedOnce = this.pressed;
        this.pressed = false;
        return false;
    }
}

