mirror of
https://github.com/flarum/framework.git
synced 2025-03-03 00:51:53 +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…
x
Reference in New Issue
Block a user