# Prevent Unfolding Map from panning off screen

**URL:** https://discourse.processing.org/t/prevent-unfolding-map-from-panning-off-screen/18328
**Category:** Libraries
**Created:** [March 2, 2020, 10:54pm UTC](https://discourse.processing.org/t/prevent-unfolding-map-from-panning-off-screen/18328 "2020-03-02T22:54:13Z")
**Posts on this page:** 1
**Showing post:** 3

<div class="post-metadata">

### Author: ![wcneill](https://avatars.discourse-cdn.com/v4/letter/w/b19c9b/32.png) [@wcneill](https://discourse.processing.org/u/wcneill)
#### Post date: [March 5, 2020, 3:39pm UTC](https://discourse.processing.org/t/prevent-unfolding-map-from-panning-off-screen/18328/3 "2020-03-05T15:39:03Z")

</div>

Hi There!

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

Wes

---

_[View the full topic](https://discourse.processing.org/t/prevent-unfolding-map-from-panning-off-screen/18328)._
