mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-11-07 06:57:02 +08:00
Scroll tweaks
This commit is contained in:
@ -37,7 +37,7 @@
|
||||
});
|
||||
};
|
||||
|
||||
ionic.views.Scroll.prototype = {
|
||||
ionic.views.ScrollView.prototype = {
|
||||
DECEL_RATE_NORMAL: 0.998,
|
||||
DECEL_RATE_FAST: 0.99,
|
||||
DECEL_RATE_SLOW: 0.996,
|
||||
|
||||
@ -244,7 +244,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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user