added another option for the contain option called "constrain" which
will prevent a user from panning the element beyond the container
element