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