Skip to content

Commit

Permalink
See bigspotteddog#14: Enabled scroll to fixed for iOS5.
Browse files Browse the repository at this point in the history
  • Loading branch information
bigspotteddog committed Feb 19, 2012
1 parent 504ed1f commit cfbd3b5
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion jquery-scrolltofixed-min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions jquery-scrolltofixed.js
Expand Up @@ -278,10 +278,10 @@
// Turn off this functionality for iOS devices until we figure out
// what to do with them, or until iOS5 comes out which is supposed
// to support position:fixed.
if (navigator.platform == 'iPad' || navigator.platform == 'iPhone'
|| navigator.platform == "iPod") {

return;
if (navigator.platform === 'iPad' || navigator.platform === 'iPhone' || navigator.platform === "iPod") {
if (!navigator.userAgent.match(/OS 5_\d like Mac OS X/i)) {
return;
}
}

// Put the target element on top of everything that could be below
Expand Down

0 comments on commit cfbd3b5

Please sign in to comment.