Skip to content

Commit cb68663

Browse files
committed
fix(scrollView): don't show bars if not scrolling. Fixes #805
1 parent 8fae85e commit cb68663

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

js/views/scrollView.js

+1-5
Original file line numberDiff line numberDiff line change
@@ -743,9 +743,6 @@ ionic.views.Scroll = ionic.views.View.inherit({
743743
__resizeScrollbars: function() {
744744
var self = this;
745745

746-
// Bring the scrollbars in to show the content change
747-
self.__fadeScrollbars('in');
748-
749746
// Update horiz bar
750747
if(self.__indicatorX) {
751748
var width = Math.max(Math.round(self.__clientWidth * self.__clientWidth / (self.__contentWidth)), 20);
@@ -1360,8 +1357,6 @@ ionic.views.Scroll = ionic.views.View.inherit({
13601357

13611358
var self = this;
13621359

1363-
self.__fadeScrollbars('in');
1364-
13651360
// Reset interruptedAnimation flag
13661361
self.__interruptedAnimation = true;
13671362

@@ -1604,6 +1599,7 @@ ionic.views.Scroll = ionic.views.View.inherit({
16041599
self.__isDragging = (self.__enableScrollX || self.__enableScrollY) && (distanceX >= minimumTrackingForDrag || distanceY >= minimumTrackingForDrag);
16051600
if (self.__isDragging) {
16061601
self.__interruptedAnimation = false;
1602+
self.__fadeScrollbars('in');
16071603
}
16081604

16091605
}

0 commit comments

Comments
 (0)