Skip to content

Commit 8b5db59

Browse files
committed
Globally disable autoscroll, closes eHealthAfrica#176
See: angular-ui/ui-router#807
1 parent e82d3c7 commit 8b5db59

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

app/scripts/app.js

+6
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,12 @@ angular.module('lmisChromeApp', [
1717
);
1818
})
1919

20+
// Disable ui-router auto scrolling
21+
.config(function($uiViewScrollProvider, $anchorScrollProvider) {
22+
$uiViewScrollProvider.useAnchorScroll();
23+
$anchorScrollProvider.disableAutoScrolling();
24+
})
25+
2026
// Central Variable for Watching Online/Offline Events
2127
.run(function($window, $rootScope, $state, $stateParams, storageService) {
2228
//global message placeholder

app/views/home/nav.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,4 @@
99
</ul>
1010
</div>
1111

12-
<ui-view autoscroll="false" />
12+
<ui-view />

0 commit comments

Comments
 (0)