Fix onSwipe initial positions
This commit is contained in:
1 parent
559188413e
commit
f7d16330af
1 file changed
+2
@@ -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) => {
|
||||
|
||||
Reference in new issue
Block a user