Risky bump of use-long-press and to 1s delay

This commit is contained in:
Lim Chee Aun 2023-04-24 19:16:07 +08:00
parent 82103a3099
commit 944a896586
4 changed files with 11 additions and 13 deletions

18
package-lock.json generated
View file

@ -33,7 +33,7 @@
"toastify-js": "~1.12.0", "toastify-js": "~1.12.0",
"uid": "~2.0.2", "uid": "~2.0.2",
"use-debounce": "~9.0.3", "use-debounce": "~9.0.3",
"use-long-press": "~2.0.3", "use-long-press": "~3.0.4",
"use-resize-observer": "~9.1.0", "use-resize-observer": "~9.1.0",
"valtio": "1.9.0" "valtio": "1.9.0"
}, },
@ -6730,13 +6730,9 @@
} }
}, },
"node_modules/use-long-press": { "node_modules/use-long-press": {
"version": "2.0.3", "version": "3.0.4",
"resolved": "https://registry.npmjs.org/use-long-press/-/use-long-press-2.0.3.tgz", "resolved": "https://registry.npmjs.org/use-long-press/-/use-long-press-3.0.4.tgz",
"integrity": "sha512-n3cfv90Y1ldNt+hhXzxnxuLZmgLOOC/+qfLGoeEBgOxmnokPPt39MPF3KmvKriq5VMoJ7uQdVjHejCdHBt9anw==", "integrity": "sha512-+/qkbuRjsrzi30aSIE6lrq0+7TSGKUg6drbk/jSNqJqeWWRIjj5/XQoA9YzQC+IVVwkmcknK8MLi/HtAfNFvPA==",
"engines": {
"node": ">=10",
"npm": ">=5"
},
"peerDependencies": { "peerDependencies": {
"react": "^16.8.0 || ^17.0.0 || ^18.0.0" "react": "^16.8.0 || ^17.0.0 || ^18.0.0"
} }
@ -11861,9 +11857,9 @@
"requires": {} "requires": {}
}, },
"use-long-press": { "use-long-press": {
"version": "2.0.3", "version": "3.0.4",
"resolved": "https://registry.npmjs.org/use-long-press/-/use-long-press-2.0.3.tgz", "resolved": "https://registry.npmjs.org/use-long-press/-/use-long-press-3.0.4.tgz",
"integrity": "sha512-n3cfv90Y1ldNt+hhXzxnxuLZmgLOOC/+qfLGoeEBgOxmnokPPt39MPF3KmvKriq5VMoJ7uQdVjHejCdHBt9anw==", "integrity": "sha512-+/qkbuRjsrzi30aSIE6lrq0+7TSGKUg6drbk/jSNqJqeWWRIjj5/XQoA9YzQC+IVVwkmcknK8MLi/HtAfNFvPA==",
"requires": {} "requires": {}
}, },
"use-resize-observer": { "use-resize-observer": {

View file

@ -35,7 +35,7 @@
"toastify-js": "~1.12.0", "toastify-js": "~1.12.0",
"uid": "~2.0.2", "uid": "~2.0.2",
"use-debounce": "~9.0.3", "use-debounce": "~9.0.3",
"use-long-press": "~2.0.3", "use-long-press": "~3.0.4",
"use-resize-observer": "~9.1.0", "use-resize-observer": "~9.1.0",
"valtio": "1.9.0" "valtio": "1.9.0"
}, },

View file

@ -33,6 +33,7 @@ function NavMenu(props) {
states.showAccounts = true; states.showAccounts = true;
}, },
{ {
threshold: 1000,
detect: 'touch', detect: 'touch',
cancelOnMovement: true, cancelOnMovement: true,
}, },

View file

@ -673,7 +673,7 @@ function Status({
setIsContextMenuOpen(true); setIsContextMenuOpen(true);
}, },
{ {
threshold: 500, threshold: 1000,
captureEvent: true, captureEvent: true,
detect: 'touch', detect: 'touch',
cancelOnMovement: true, cancelOnMovement: true,
@ -1836,6 +1836,7 @@ function FilteredStatus({ status, filterInfo, instance, containerProps = {} }) {
setShowPeek(true); setShowPeek(true);
}, },
{ {
threshold: 1000,
captureEvent: true, captureEvent: true,
detect: 'touch', detect: 'touch',
cancelOnMovement: true, cancelOnMovement: true,