Make sure slidable parameters are reset correctly

This commit is contained in:
Toby Zerner 2015-07-28 17:37:46 +09:30
parent a4233eb35d
commit ff9f8ddc7e

View File

@ -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};