Improving the feel of the swipe to refresh.
This commit is contained in:
parent
61f8628f9d
commit
133b888764
@ -2412,9 +2412,9 @@ class list extends IgniteTemplate {
|
||||
if (this.element.parentElement.scrollTop > 0) {
|
||||
this.refreshTouchStartY = touch.clientY;
|
||||
} 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) {
|
||||
this.refreshPlaceholderElement.element.style.setProperty("min-height", `${diff}px`);
|
||||
this.refreshPlaceholderElement.element.style.setProperty("height", `${diff}px`);
|
||||
|
Loading…
x
Reference in New Issue
Block a user