faster expand on hold

This commit is contained in:
Roman Pominov committed 2022-08-22 09:52:27 +03:00
1 parent a2cd70d7ca
commit 21a8b52035
1 file changed
+1 -1
@@ -218,7 +218,7 @@ export const Tree = ({
const useHoldHandler = useHold<DropTarget<Instance>>({
isEqual: (a, b) => a.data.id === b.data.id,
holdTimeThreshold: 1000,
holdTimeThreshold: 600,
onHold: (dropTarget) => {
if (
getIsExpandable(dropTarget.data) &&