Skip to content

Commit 1b70439

Browse files
committed
making scrolto work in firefox. closes #42
1 parent 3c33cad commit 1b70439

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

js/app.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ angular.module('demoApp', ['ui'], function($locationProvider) {
1919
attrs.scrollto = attrs.href;
2020
}
2121
var top = $(attrs.scrollto).offset().top;
22-
$('body').animate({ scrollTop: top }, 800);
22+
$('body,html').animate({ scrollTop: top }, 800);
2323
});
2424
};
2525
}]);

0 commit comments

Comments
 (0)