Improving the feel of the swipe to refresh.
This commit is contained in:
		| @@ -2412,9 +2412,9 @@ class list extends IgniteTemplate { | |||||||
|         if (this.element.parentElement.scrollTop > 0) { |         if (this.element.parentElement.scrollTop > 0) { | ||||||
|             this.refreshTouchStartY = touch.clientY; |             this.refreshTouchStartY = touch.clientY; | ||||||
|         } else { |         } else { | ||||||
|             var diff = Math.max(touch.clientY - this.refreshTouchStartY, 0); |             var diff = Math.max(touch.clientY - this.refreshTouchStartY, 0) / 2; | ||||||
|  |  | ||||||
|             if (diff < 100) { |             if (diff < 75) { | ||||||
|                 if (this.refreshPlaceholderElement instanceof IgniteTemplate) { |                 if (this.refreshPlaceholderElement instanceof IgniteTemplate) { | ||||||
|                     this.refreshPlaceholderElement.element.style.setProperty("min-height", `${diff}px`); |                     this.refreshPlaceholderElement.element.style.setProperty("min-height", `${diff}px`); | ||||||
|                     this.refreshPlaceholderElement.element.style.setProperty("height", `${diff}px`); |                     this.refreshPlaceholderElement.element.style.setProperty("height", `${diff}px`); | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user