Prevent Unfolding Map from panning off screen

Hi There!

What variable do you suggest I constrain? mouseX and mouseY don’t seem like good candidates.

Wes