From f7d16330af79b82220d0e30fd61d86273df6d664 Mon Sep 17 00:00:00 2001 From: Franzz Date: Wed, 28 Sep 2022 08:01:18 +0200 Subject: [PATCH] Fix onSwipe initial positions --- script/spot.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/script/spot.js b/script/spot.js index c39b6dd..6e3fc6b 100755 --- a/script/spot.js +++ b/script/spot.js @@ -391,6 +391,8 @@ $.prototype.onSwipe = function(fOnMove, fOnEnd){ var oPos = getDragPosition(e); $This.data('x-start', oPos.x); $This.data('y-start', oPos.y); + $This.data('x-move', oPos.x); + $This.data('y-move', oPos.y); $This.data('moving', true).addClass('moving'); }) .on('touchmove mousemove', (e) => {