We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2486b12 commit 8eb70caCopy full SHA for 8eb70ca
1 file changed
packages/ui/src/components/root/Root.tsx
@@ -83,10 +83,13 @@ export function DRoot(props: DRootProps): JSX.Element | null {
83
windowRef,
84
'click',
85
(e) => {
86
- ROOT_DATA.clickEvent = {
87
- time: performance.now(),
88
- e,
89
- };
+ // Check if click by keydown.
+ if (!(e.clientX === 0 && e.clientY === 0)) {
+ ROOT_DATA.clickEvent = {
+ time: performance.now(),
90
+ e,
91
+ };
92
+ }
93
},
94
{ capture: true }
95
);
0 commit comments