Skip to content

Commit 831d1d0

Browse files
Tim KyeTim Kye
authored andcommitted
set default enter delay to 0
1 parent 24680a3 commit 831d1d0

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/index.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ export type HoverProps = Pick<
1111
>;
1212

1313
export default function useHover({
14-
mouseEnterDelayMS = 200,
15-
mouseLeaveDelayMS = 0
14+
mouseEnterDelayMS = 0,
15+
mouseLeaveDelayMS = 0,
1616
}: UseHoverOptions = {}): [boolean, HoverProps] {
1717
const [isHovering, setIsHovering] = useState(false);
1818
let mouseEnterTimer: number | undefined;
@@ -33,7 +33,7 @@ export default function useHover({
3333
() => setIsHovering(false),
3434
mouseLeaveDelayMS
3535
);
36-
}
37-
}
36+
},
37+
},
3838
];
3939
}

0 commit comments

Comments
 (0)