Added keepInViewport option
Merge pull request #138 from Fuffi/master

Added keepInViewport option