Reimplement Reanimated's clamp used in a pan gesture.
Math.max
Math.min
function clampTranslation(x, min, max) { // TODO }