Permalink
Browse files

Bugfix for broken scrolling in Chrome, Safari

  • Loading branch information...
askedrelic committed May 28, 2011
1 parent 4b9583a commit 3d6ef87d9fb639b326b67ca7b1089142f733b5c9
Showing with 1 addition and 2 deletions.
  1. +1 −2 jquery.sausage.js
View
@@ -256,10 +256,9 @@
// Travel at 2 px per 1 ms but never longer than 1 s.
duration = (duration < 1000) ? duration : 1000;
- //// TODO: Animate scrollTop fails on `window`, research this
if (self.$outer.get(0) === window)
{
- $outer = $('html, document');
+ $outer = $('body, html, document');
}
$outer

0 comments on commit 3d6ef87

Please sign in to comment.