From 3b497beb96fc628173837edfe664921e37eaa467 Mon Sep 17 00:00:00 2001 From: MattMo Date: Wed, 1 Jun 2022 08:40:24 -0700 Subject: [PATCH] Improved pull to refresh on higher dpis. --- ignite-template.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ignite-template.js b/ignite-template.js index ca6e447..a2cf27d 100644 --- a/ignite-template.js +++ b/ignite-template.js @@ -2414,7 +2414,7 @@ class list extends IgniteTemplate { } else { var diff = Math.max(touch.clientY - this.refreshTouchStartY, 0) / 2; - if (diff < 75) { + if (diff < (40 * window.devicePixelRatio)) { if (this.refreshPlaceholderElement instanceof IgniteTemplate) { this.refreshPlaceholderElement.element.style.setProperty("min-height", `${diff}px`); this.refreshPlaceholderElement.element.style.setProperty("height", `${diff}px`);