Fix snap.js fixed header and footer problem with ios