Browse Source

enable iOS native scrolling

master
Igor Zhukov 11 years ago
parent
commit
c82af8eb38
  1. 2
      app/index.html
  2. 4
      app/js/directives.js

2
app/index.html

@ -55,7 +55,7 @@ @@ -55,7 +55,7 @@
<script type="text/javascript" src="js/services.js?21"></script>
<script type="text/javascript" src="js/controllers.js?29"></script>
<script type="text/javascript" src="js/filters.js?4"></script>
<script type="text/javascript" src="js/directives.js?19"></script>
<script type="text/javascript" src="js/directives.js?20"></script>
</body>
</html>

4
app/js/directives.js

@ -46,7 +46,7 @@ angular.module('myApp.directives', ['myApp.filters']) @@ -46,7 +46,7 @@ angular.module('myApp.directives', ['myApp.filters'])
moreNotified = false;
onContentLoaded(function () {
$(dialogsWrap).nanoScroller({preventPageScrolling: true, tabIndex: -1});
$(dialogsWrap).nanoScroller({preventPageScrolling: true, tabIndex: -1, iOSNativeScrolling: true});
});
var updateScroller = function () {
@ -116,7 +116,7 @@ angular.module('myApp.directives', ['myApp.filters']) @@ -116,7 +116,7 @@ angular.module('myApp.directives', ['myApp.filters'])
onContentLoaded(function () {
scrollableWrap.scrollTop = scrollableWrap.scrollHeight;
$(historyWrap).nanoScroller({preventPageScrolling: true, tabIndex: -1});
$(historyWrap).nanoScroller({preventPageScrolling: true, tabIndex: -1, iOSNativeScrolling: true});
});
var updateScroller = function (delay) {

Loading…
Cancel
Save