mirror of
https://github.com/flarum/framework.git
synced 2024-12-12 06:03:39 +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;
|
||||
|
||||
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