Open Giuseppetm opened 2 years ago
@Giuseppetm Hmmm, I can't reproduce that. Everything is working fine.
@Giuseppetm Hmmm, I can't reproduce that. Everything is working fine.
Maybe this is caused by React; I'll let you know if I find something about this.
Hi there, I did face the same issue when using React, but I manage to fix this issue by replacing
<div data-cursor-stick>Hover me to stick cursor!</div>
with
<div data-cursor-stick=".stick-me" className="stick-me">Hover me to stick cursor!</div>
Current version of mouse-follower still has this issue (v1.1.2). @sisheng1998 managed to find a temporary fix but looks like it doesn't work anymore.
My current fix is this code:
data-cursor-stick={`#stick-lateral-menu-${x}`} id={`stick-lateral-menu-${x}`}
(x is the identifier for your element).
FYI @Drafteed
same problem all fixes are temporary
Hello, using sticky effect via data attribute causes this error:
<div data-cursor-stick>Hover me to stick cursor!</div>
Details
Mouse-follower version:
1.0.7
(I tried1.0.3
too, same error)