Fix Safari over-scroll bug, fixes #218
Fix Safari over-scroll bug, fixes #218

Protect against negative scroll values or scroll values past the end of the
document. Stop scrolling if this is the case.

lzpfmh/sphinx_rtd_theme,gsinghware/sphinx_rtd_theme,leoshaw/sphinx_rtd_theme,leplatrem/sphinx_rtd_theme,CENDARI/sphinx_rtd_theme,lzpfmh/sphinx_rtd_theme,digideskio/digidocs,mitya57/sphinx_rtd_theme,emawind84/sphinx_rtd_theme,mitya57/sphinx_rtd_theme,leoshaw/sphinx_rtd_theme,snide/sphinx_rtd_theme,OrfeasZ/sol2,ThePhD/sol2,nshcat/sol2,seanwarren/sphinx_rtd_theme,ThePhD/sol2,lzpfmh/sphinx_rtd_theme,ThePhD/sol2,dantleech/sphinx_rtd_theme,resibots/sphinx_resibots_theme,leoshaw/sphinx_rtd_theme,devel0/sphinx_rtd_theme,billw2012/sol2,digideskio/sphinx_rtd_theme,asakusuma/sphinx_rtd_theme,HardRockMartian/swri_sphinx_theme,Open-Wide/sphinx_rtd_theme,dantleech/sphinx_rtd_theme,asakusuma/sphinx_rtd_theme,Open-Wide/sphinx_rtd_theme,mitya57/sphinx_rtd_theme,billw2012/sol2,resibots/sphinx_resibots_theme,onlinecity/sphinx_rtd_theme,shoopio/sphinx-shoop-theme,devel0/sphinx_rtd_theme,dantleech/sphinx_rtd_theme,ushahidi/ushahid_sphinx_rtd_theme,seanwarren/sphinx_rtd_theme,shoopio/sphinx-shoop-theme,seanwarren/sphinx_rtd_theme,digideskio/digidocs,digideskio/sphinx_rtd_theme,leplatrem/sphinx_rtd_theme,digideskio/sphinx_rtd_theme,onlinecity/sphinx_rtd_theme,leplatrem/sphinx_rtd_theme,OrfeasZ/sol2,leoshaw/sphinx_rtd_theme,OrfeasZ/sol2,onlinecity/sphinx_rtd_theme,Open-Wide/sphinx_rtd_theme,dantleech/sphinx_rtd_theme,emawind84/sphinx_rtd_theme,emawind84/sphinx_rtd_theme,mitya57/sphinx_rtd_theme,billw2012/sol2,seanwarren/sphinx_rtd_theme,HardRockMartian/swri_sphinx_theme,asakusuma/sphinx_rtd_theme,asakusuma/sphinx_rtd_theme,resibots/sphinx_resibots_theme,shoopio/sphinx-shoop-theme,Open-Wide/sphinx_rtd_theme,HardRockMartian/swri_sphinx_theme,snide/sphinx_rtd_theme,devel0/sphinx_rtd_theme,shoopio/sphinx-shoop-theme,CENDARI/sphinx_rtd_theme,CENDARI/sphinx_rtd_theme,ushahidi/ushahid_sphinx_rtd_theme,leplatrem/sphinx_rtd_theme,ushahidi/ushahid_sphinx_rtd_theme,ushahidi/ushahid_sphinx_rtd_theme,Open-Wide/sphinx_rtd_theme,onlinecity/sphinx_rtd_theme,gsinghware/sphinx_rtd_theme,digideskio/sphinx_rtd_theme,gsinghware/sphinx_rtd_theme,devel0/sphinx_rtd_theme,digideskio/digidocs,nshcat/sol2,OrfeasZ/sol2,ThePhD/sol2,resibots/sphinx_resibots_theme,snide/sphinx_rtd_theme,digideskio/digidocs,billw2012/sol2,emawind84/sphinx_rtd_theme,snide/sphinx_rtd_theme,lzpfmh/sphinx_rtd_theme,gsinghware/sphinx_rtd_theme,CENDARI/sphinx_rtd_theme