#47 : Prevent swiping if swiping is false
This commit is contained in:
@@ -286,15 +286,19 @@
|
||||
|
||||
// gestures
|
||||
function handleSwipeStart() {
|
||||
if (!swiping) return
|
||||
_duration = 0
|
||||
}
|
||||
async function handleThreshold(event) {
|
||||
if (!swiping) return
|
||||
await directionFnDescription[event.detail.direction]()
|
||||
}
|
||||
function handleSwipeMove(event) {
|
||||
if (!swiping) return
|
||||
offset += event.detail.dx
|
||||
}
|
||||
function handleSwipeEnd() {
|
||||
if (!swiping) return
|
||||
showPage(currentPageIndex)
|
||||
}
|
||||
function handleFocused(event) {
|
||||
|
||||
Reference in New Issue
Block a user