mirror of
https://github.com/flarum/framework.git
synced 2024-12-13 15:13:42 +08:00
Make sure slidable parameters are reset correctly
This commit is contained in:
parent
a4233eb35d
commit
ff9f8ddc7e
|
@ -68,6 +68,7 @@ export default function slidable(element) {
|
||||||
startY = e.originalEvent.targetTouches[0].clientY;
|
startY = e.originalEvent.targetTouches[0].clientY;
|
||||||
|
|
||||||
couldBeSliding = true;
|
couldBeSliding = true;
|
||||||
|
pos = 0;
|
||||||
})
|
})
|
||||||
|
|
||||||
.on('touchmove', function(e) {
|
.on('touchmove', function(e) {
|
||||||
|
@ -142,6 +143,7 @@ export default function slidable(element) {
|
||||||
}
|
}
|
||||||
|
|
||||||
couldBeSliding = false;
|
couldBeSliding = false;
|
||||||
|
isSliding = false;
|
||||||
});
|
});
|
||||||
|
|
||||||
return {reset};
|
return {reset};
|
||||||
|
|
Loading…
Reference in New Issue
Block a user