Scroll tweaks

This commit is contained in:
Max Lynch
2013-10-24 12:53:16 -05:00
parent df29095ca7
commit 025dd0f947
7 changed files with 58 additions and 40 deletions

4
dist/js/ionic.js vendored
View File

@ -2520,7 +2520,7 @@ window.ionic = {
});
};
ionic.views.Scroll.prototype = {
ionic.views.ScrollView.prototype = {
DECEL_RATE_NORMAL: 0.998,
DECEL_RATE_FAST: 0.99,
DECEL_RATE_SLOW: 0.996,
@ -2967,7 +2967,7 @@ var utils = (function () {
ionic.views.Scroll = function (options) {
var el = options.el;
this.wrapper = typeof el == 'string' ? document.querySelector(el) : el;
this.wrapper = el;//typeof el == 'string' ? document.querySelector(el) : el;
this.scroller = this.wrapper.children[0];
this.scrollerStyle = this.scroller.style; // cache style for better performance