We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5a633dc commit ce755d1Copy full SHA for ce755d1
modules/mixins/ScrollContext.js
@@ -75,10 +75,12 @@ var ScrollContext = {
75
},
76
77
updateScroll: function (path, actionType) {
78
- var behavior = this.getScrollBehavior();
+ if (this._scrollPositions) {
79
+ var behavior = this.getScrollBehavior();
80
+ var position = this._scrollPositions[path];
81
- if (behavior != null && this._scrollPositions.hasOwnProperty(path)) {
- behavior.updateScrollPosition(this._scrollPositions[path], actionType);
82
+ if (behavior && position)
83
+ behavior.updateScrollPosition(position, actionType);
84
}
85
86
0 commit comments