pull request for the fix provided in issue 16, for both vertical and horizontal scrolling

https://github.com/noraesae/perfect-scrollbar/issues/16