Closed brousalis closed 6 years ago
Thanks for this contribution! I think this is a bit of an edge case, but it's a nice feature. I'll keep the PR open for a bit so others can take a look.
I've decided to pass on this request. Thanks again for your contribution!
I have a use case where i'd like the
containment
to be the 'window', instead of an element.http://codepen.io/anon/pen/gpbmdm
Throws an undefined here L325 (container will be null since
document.querySelector('window')
The solution is a little hacky, and I understand if you don't want
containment
to support window. Just thought I'd submit a PR from my fork.