add: new design
New design
This commit is contained in:
parent
192b031140
commit
628659c39d
5 changed files with 14 additions and 6 deletions
|
@ -77,9 +77,9 @@ const intl = Intl.NumberFormat('de-DE', {
|
|||
|
||||
const { lengthX, isSwiping } = useSwipe(top, {
|
||||
passive: false,
|
||||
threshold: 5,
|
||||
threshold: 30,
|
||||
onSwipe() {
|
||||
if (lengthX.value != 0) {
|
||||
if (lengthX.value > 50 || lengthX.value < -50) {
|
||||
left.value = `${-clamp(lengthX.value, -100, 100)}px`
|
||||
}
|
||||
},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue