Last active
December 10, 2015 12:38
-
-
Save antidis/4435753 to your computer and use it in GitHub Desktop.
Mobile Safari screwing up your position: fixed content when you blur out of a form field? This will solve it.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
fix_mobile_scrolling = function() { | |
var current_body_scroll_top = $('body').scrollTop(); | |
window.setTimeout(function (s) { | |
$('body').scrollTop(s + 1); | |
window.setTimeout(function (s) { | |
$('body').scrollTop(s); | |
}, 10, s) | |
}, 10, current_body_scroll_top); | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment