Fix scrolling on legacy browsers by introducing a normalizing library.

fixes #1381