Fix onSwipe initial positions

This commit is contained in:
2022-09-28 08:01:18 +02:00
parent 500c679cd6
commit 0395c340e2

View File

@@ -391,6 +391,8 @@ $.prototype.onSwipe = function(fOnMove, fOnEnd){
var oPos = getDragPosition(e); var oPos = getDragPosition(e);
$This.data('x-start', oPos.x); $This.data('x-start', oPos.x);
$This.data('y-start', oPos.y); $This.data('y-start', oPos.y);
$This.data('x-move', oPos.x);
$This.data('y-move', oPos.y);
$This.data('moving', true).addClass('moving'); $This.data('moving', true).addClass('moving');
}) })
.on('touchmove mousemove', (e) => { .on('touchmove mousemove', (e) => {