mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2026-03-13 10:22:08 +08:00
fix(scrollView): don't show bars if not scrolling. Fixes #805
This commit is contained in:
@@ -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');
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user