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