From 1524fdfd772c4ddbdb02c5b56b64a2188430ff35 Mon Sep 17 00:00:00 2001 From: Henrik Hermansen Date: Mon, 1 Dec 2014 09:43:06 +0100 Subject: [PATCH] Prevent updating position without target When scrolling a list on mobile, Slip attempts to update positions even though no element is grabbed. That's problematic, as we have no target object, so let's just not do that. --- slip.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/slip.js b/slip.js index 3e0d182..75d0e92 100644 --- a/slip.js +++ b/slip.js @@ -626,6 +626,8 @@ window['Slip'] = (function(){ }, updatePosition: function(e, pos) { + if(this.target == null) + return; this.latestPosition = pos; var triggerOffset = 40,