This commit is contained in:
parent
7a7dc0db00
commit
cd8a5b26ba
@ -71,8 +71,7 @@ const { lengthY } = useSwipe(
|
||||
{
|
||||
passive: false,
|
||||
onSwipeEnd(e: TouchEvent, direction: UseSwipeDirection) {
|
||||
console.log('target.value', target.value)
|
||||
if (lengthY.value > 50 && targetHeight.value && (Math.abs(lengthY.value) / targetHeight.value) >= 0.25) {
|
||||
if (lengthY.value > 0 && targetHeight.value && (Math.abs(lengthY.value) / targetHeight.value) >= 0.1) {
|
||||
open.value = true
|
||||
}
|
||||
},
|
||||
@ -84,7 +83,6 @@ const { lengthY: drawerLengthY } = useSwipe(
|
||||
{
|
||||
passive: false,
|
||||
onSwipeEnd(e: TouchEvent, direction: UseSwipeDirection) {
|
||||
console.log('targetDrawer.value', targetDrawer.value)
|
||||
if (drawerLengthY.value < 0 && y.value === 0 && targetDrawerHeight.value && (Math.abs(drawerLengthY.value) / targetDrawerHeight.value) >= 0.2) {
|
||||
open.value = false
|
||||
}
|
||||
@ -97,6 +95,7 @@ const { lengthY: drawerLengthY } = useSwipe(
|
||||
@use '~/assets/scss/utils' as *;
|
||||
|
||||
.product {
|
||||
overflow: hidden;
|
||||
position: relative;
|
||||
width: 100%;
|
||||
display: flex;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user