briangonzalez / jquery.pep.js

👟 Pep, a lightweight plugin for kinetic drag on mobile/desktop
http://pep.briangonzalez.org
1.3k stars 178 forks source link

[help] constrain to parent: when parent is smaller than child #181

Closed piyushkmr closed 7 years ago

piyushkmr commented 8 years ago

How can I constrain child so that it stops dragging when edges hit the parent boundary? The catch here is that, child is bigger than parent.