Add closed-check for touchmove
This commit is contained in:
parent
e46b560ead
commit
4752081818
2 changed files with 6 additions and 2 deletions
|
@ -33,7 +33,7 @@ const SideDrawer = {
|
|||
},
|
||||
touchMove (e) {
|
||||
const delta = deltaX(this.touchX, touchEventX(e))
|
||||
if (delta < -30) {
|
||||
if (delta < -30 && !this.closed) {
|
||||
this.toggleDrawer()
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue