We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5e072f0 commit 9063488Copy full SHA for 9063488
packages/docusaurus/src/client/exports/Link.tsx
@@ -117,7 +117,7 @@ function Link(
117
}
118
};
119
120
- const onMouseEnter = () => {
+ const onInteractionEnter = () => {
121
if (!preloaded.current && targetLink != null) {
122
window.docusaurus.preload(targetLink);
123
preloaded.current = true;
@@ -159,7 +159,8 @@ function Link(
159
) : (
160
<LinkComponent
161
{...props}
162
- onMouseEnter={onMouseEnter}
+ onMouseEnter={onInteractionEnter}
163
+ onTouchStart={onInteractionEnter}
164
innerRef={handleRef}
165
to={targetLink}
166
// Avoid "React does not recognize the `activeClassName` prop on a DOM
0 commit comments