As described in the issue, mouseover is being fired multiple times on links with nested markup. Following the research by @daun , we are switching to mouseenter and make sure that event.target matches event.delegateTarget before firing the hoverLink event and starting a preload.
Checks
[x] The PR is submitted to the master branch
[x] The code was linted before pushing (npm run lint)
Closes #49
Description
As described in the issue,
mouseover
is being fired multiple times on links with nested markup. Following the research by @daun , we are switching tomouseenter
and make sure thatevent.target
matchesevent.delegateTarget
before firing thehoverLink
event and starting a preload.Checks
master
branchnpm run lint
)