fix(scrollView): don't show bars if not scrolling. Fixes #805

This commit is contained in:
Max Lynch
2014-03-16 21:24:52 -05:00
parent 8fae85e9e6
commit cb686636cd

View File

@@ -743,9 +743,6 @@ ionic.views.Scroll = ionic.views.View.inherit({
__resizeScrollbars: function() {
var self = this;
// Bring the scrollbars in to show the content change
self.__fadeScrollbars('in');
// Update horiz bar
if(self.__indicatorX) {
var width = Math.max(Math.round(self.__clientWidth * self.__clientWidth / (self.__contentWidth)), 20);
@@ -1360,8 +1357,6 @@ ionic.views.Scroll = ionic.views.View.inherit({
var self = this;
self.__fadeScrollbars('in');
// Reset interruptedAnimation flag
self.__interruptedAnimation = true;
@@ -1604,6 +1599,7 @@ ionic.views.Scroll = ionic.views.View.inherit({
self.__isDragging = (self.__enableScrollX || self.__enableScrollY) && (distanceX >= minimumTrackingForDrag || distanceY >= minimumTrackingForDrag);
if (self.__isDragging) {
self.__interruptedAnimation = false;
self.__fadeScrollbars('in');
}
}