private int clampMag(int value, int absMin, int absMax) {
        final int absValue = Math.abs(value);
        if (absValue < absMin) return 0;
        if (absValue > absMax) return value > 0 ? absMax : -absMax;
        return value;
    }
Clamp the magnitude of value for absMin and absMax.
If the value is below the minimum, it will be clamped to zero.
If the value is above the maximum, it will be clamped to the maximum.

@param value Value to clamp
@param absMin Absolute value of the minimum significant value to return
@param absMax Absolute value of the maximum value to return
@return The clamped value with the same sign as <code>value</code>
app/src/main/java/home/smart/fly/animations/widget/slidepanel/ViewDragHelper.java