fix viewportHeight in mobile. Fixes #370