Fixes iOS infinite loop and Chrome browser zoom bugs.

https://github.com/cferdinandi/smooth-scroll/pull/31
https://github.com/cferdinandi/smooth-scroll/pull/35